linux/tools/testing/selftests/nolibc
Thomas Weißschuh 9c5e490093 selftests/nolibc: prevent out of bounds access in expect_vfprintf
If read() fails and returns -1 (or returns garbage for some other
reason) buf would be accessed out of bounds.
Only use the return value of read() after it has been validated.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2023-08-23 05:17:07 +02:00
..
.gitignore tools/nolibc: add libc-test binary 2023-06-09 11:33:05 -07:00
Makefile selftests/nolibc: allow test -include /path/to/nolibc.h 2023-08-23 04:40:22 +02:00
nolibc-test.c selftests/nolibc: prevent out of bounds access in expect_vfprintf 2023-08-23 05:17:07 +02:00