coreboot-kgpe-d16/tests/lib
Jakub Czapiga 68220b5c42 tests/lib/memchr-test: Fix possible memory overrun, add non-null checks
Three calls to memchr() had incorrect length values which could lead to
memory overrun.
Add non-null checks to ensure correct return values from memchr()

Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Change-Id: Ief7b7e2ecb9b5d2e05e6983d92d02fa00935b392
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51054
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
2021-02-26 07:30:00 +00:00
..
Makefile.inc tests: Add lib/malloc-test test case 2021-02-26 07:29:57 +00:00
b64_decode-test.c
cbmem_console-test.c tests: Add lib/cbmem_console-test test case 2020-11-22 22:33:56 +00:00
edid-test.c tests: Add lib/edid-test test case 2020-11-10 06:19:10 +00:00
fmap-test.c tests: Add lib/fmap-test test case 2021-01-08 08:26:26 +00:00
hexstrtobin-test.c
imd-test.c
imd_cbmem-test.c tests: Add lib/imd_cbmem-test test case 2021-01-18 07:27:16 +00:00
list-test.c tests: Add lib/list-test test case 2020-11-25 09:14:07 +00:00
malloc-test.c tests: Add lib/malloc-test test case 2021-02-26 07:29:57 +00:00
memchr-test.c tests/lib/memchr-test: Fix possible memory overrun, add non-null checks 2021-02-26 07:30:00 +00:00
memcmp-test.c tests: Add lib/memcmp-test test case 2021-02-18 19:12:46 +00:00
memcpy-test.c tests: Add lib/memcpy-test test case 2021-02-23 17:12:52 +00:00
memset-test.c tests: Add lib/memset-test test case 2021-02-18 10:14:21 +00:00
region_file-test.c tests: Add lib/region_file-test test case 2021-02-02 18:05:26 +00:00
stack-test.c tests: Add lib/stack-test test case 2021-02-12 07:48:24 +00:00
string-test.c
timestamp-test.c