]> Savannah Git Hosting - gnulib.git/commit
calloc-gnu-tests: add overflow tests
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Apr 2021 17:12:15 +0000 (10:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Apr 2021 17:47:39 +0000 (10:47 -0700)
commite25cfaa3b59d3d7d8435e9e164a7f92e92c3f64d
tree4f3771f2dd527f3fb792ae7a6d30a7599454c86e
parentca883666cb34922d9ab1bd0ac0101970c7aa3910
calloc-gnu-tests: add overflow tests

* tests/test-calloc-gnu.c (identity): New function, replacing ‘eight’.
(main): Do 2 * log2(SIZE_MAX) tests instead of just two tests.
Don’t bother to free on failure.
ChangeLog
tests/test-calloc-gnu.c