summaryrefslogtreecommitdiff
path: root/tests/test-explicit_bzero.c
Commit message (Collapse)AuthorAgeFilesLines
* explicit_bzero test: Fix test failure due to GCC optimizations.Bruno Haible2021-08-291-4/+17
| | | | | | * tests/test-explicit_bzero.c (do_secret_stuff): Use static variable 'last_stackbuf'. (main): Use an 'if' to combine the two do_secret_stuff invocations.
* explicit_bzero-tests: pacify GCC betterPaul Eggert2021-07-181-5/+11
| | | | | | | | Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2021-07/msg00039.html * tests/test-explicit_bzero.c: Ignore -Wmaybe-uninitialized. (stackbuf): Remove this static pointer, reverting recent change. (do_secret_stuff, test_stack): Revert these related changes too.
* explicit_bzero-tests: pacify GCCPaul Eggert2021-07-171-3/+5
| | | | | | | | Redo to pacify -Wmaybe-uninitialized with GCC 11.1.1 20210531 (Red Hat 11.1.1-3) x86-64. * tests/test-explicit_bzero.c (stackbuf): New static pointer. (do_secret_stuff): Use it. (test_stack): Set it to a local buffer.
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* explicit_bzero-tests: improve -Wmissing-declarations pacificationPaul Eggert2020-05-281-1/+1
| | | | | | * tests/test-explicit_bzero.c: Now noinline. Suggested by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
* explicit_bzero-tests: pacify -Wmissing-declarationsPaul Eggert2020-05-241-2/+2
| | | | | * tests/test-explicit_bzero.c (do_secret_stuff, test_stack): Now static.
* explicit_bzero tests: Fix test failure on OpenBSD 6.5.Bastien Roucariès2020-04-131-1/+3
| | | | | | | | | Some implementation could add canaries after free failling the test. * tests/test-explicit_bzero.c (test_heap): Handle implementations of free() that overwrite the memory with canaries. Signed-off-by: Bastien Roucariès <rouca@debian.org>
* explicit_bzero: Add tests.Bruno Haible2020-04-121-0/+175
* tests/test-explicit_bzero.c: New file. * modules/explicit_bzero-tests: New file.