coreboot-kgpe-d16/tests/lib
Jakub Czapiga 13145e5d18 tests/lib/malloc-test: Fix possible memory overrun
Coverity reported false-positive possible memory overrun
in setup_calloc_test(). Change memset address to use actual
buffer instead of pointer stored in symbol value in order
to silence Coverity.

Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Change-Id: I19f0718c657d565e515157e66367573e08f51254
Found-by: Coverity CID 1452005
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52136
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2021-04-11 21:05:25 +00:00
..
Makefile.inc tests: Add lib/bootmem-test test case 2021-04-09 06:20:50 +00:00
b64_decode-test.c
bootmem-test.c tests: Add lib/bootmem-test test case 2021-04-09 06:20:50 +00:00
cbmem_console-test.c tests: Add lib/cbmem_console-test test case 2020-11-22 22:33:56 +00:00
compute_ip_checksum-test.c tests: Add lib/compute_ip_checksum-test test case 2021-03-02 17:04:44 +00:00
crc_byte-test.c tests: Add lib/crc_byte-test test case 2021-03-02 17:04:28 +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 include/assert.h: Use mock_assert() for ENV_TEST targets 2021-04-09 06:20:04 +00:00
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/lib/malloc-test: Fix possible memory overrun 2021-04-11 21:05:25 +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
memmove-test.c tests: Add lib/memmove-test test case 2021-03-01 08:31:11 +00:00
memrange-test.c tests: Add lib/memrange-test test case 2021-03-15 06:10:24 +00:00
memset-test.c tests: memset-test: Parenthesize zero size argument for clang 2021-03-18 15:02:13 +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 include/assert.h: Use mock_assert() for ENV_TEST targets 2021-04-09 06:20:04 +00:00
string-test.c
timestamp-test.c tests: Add lib/timestamp-test test case 2020-11-09 07:34:07 +00:00
uuid-test.c tests: Add lib/uuid-test test case 2021-04-06 06:56:47 +00:00