libbsd/test
Guillem Jover d5865759f8 test: Fix explicit_bzero() test on the Hurd
On the Hurd a small read(3) might end up (indirectly) copying the data
on the stack, which we will end up finding even when we have cleared
the buffer.

To avoid these side effects, we add a new function, that we force not
to be inlined, so that we can reuse the same stack space, that will
blank any possible stack side effects. This should be portable
regardless of stack growing up or down.

Diagnosis-by: Samuel Thibault <sthibault@debian.org>
2022-10-04 04:29:37 +02:00
..
.gitignore test: Import explicit_bzero and strtonum test cases from OpenBSD 2022-01-29 14:54:24 +01:00
arc4random.c test: Fix success return code for arc4random unit test 2016-01-11 02:35:34 +01:00
bzero.c test: Add proper prototypes for main() function 2021-02-28 05:30:31 +01:00
closefrom.c test: Add proper prototypes for main() function 2021-02-28 05:30:31 +01:00
endian.c test: Add proper prototypes for main() function 2021-02-28 05:30:31 +01:00
explicit_bzero.c test: Fix explicit_bzero() test on the Hurd 2022-10-04 04:29:37 +02:00
fgetln.c test: Check that strdup() does not fail 2021-11-27 23:42:37 +01:00
fparseln.c test: Fix pipe_feed() to allow checking fprintf format strings 2021-11-27 05:06:14 +01:00
fpurge.c test: Add fpurge() test case using open_memstream(3) FILE 2022-01-29 14:10:55 +01:00
funopen.c test: Do not pass NULL as the first funopen() argument 2021-11-27 05:06:14 +01:00
headers-overlay.sh test: Fix race condition in headers-*.sh 2016-01-10 17:36:34 +01:00
headers-system.sh test: Fix race condition in headers-*.sh 2016-01-10 17:36:34 +01:00
humanize.c Fix dehumanize_number() to correctly detect overflows 2013-10-21 05:29:37 +02:00
Makefile.am test: Import explicit_bzero and strtonum test cases from OpenBSD 2022-01-29 14:54:24 +01:00
md5.c test: Add proper prototypes for main() function 2021-02-28 05:30:31 +01:00
nlist.c test: Explicitly mark symbols as used 2021-11-27 06:52:17 +01:00
overlay.c test: Add proper prototypes for main() function 2021-02-28 05:30:31 +01:00
proctitle.c test: Check asprintf() return code 2015-11-30 23:48:50 +01:00
progname.c test: Handle libtool executable names in getprogname() unit test 2017-06-24 16:05:50 +02:00
pwcache.c Import pwcache module from OpenBSD 2021-02-07 01:28:27 +01:00
setmode.c Update copyright claims 2021-02-07 01:28:27 +01:00
strl.c test: Add unit test for strlcpy() and strlcat() 2017-06-09 05:47:07 +02:00
strmode.c test: Add missing <sys/stat.h> include 2016-01-27 15:24:39 +01:00
strnstr.c test: Improve code coverage for strnstr(3) unit tests 2021-02-07 23:24:51 +01:00
strtonum.c test: Import explicit_bzero and strtonum test cases from OpenBSD 2022-01-29 14:54:24 +01:00
test-stream.c test: Fix pipe_feed() to allow checking fprintf format strings 2021-11-27 05:06:14 +01:00
test-stream.h test: Fix pipe_feed() to allow checking fprintf format strings 2021-11-27 05:06:14 +01:00
vis-openbsd.c Add support for new LIBBSD_VIS_OPENBSD selection macro 2021-02-07 02:03:22 +01:00
vis.c Fix strnvis() and strnunvis() NetBSD ABI break 2018-05-22 16:07:42 +02:00