Jakub Czapiga has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/52136 )
Change subject: tests/lib/malloc-test: Fix possible memory overrun ......................................................................
tests/lib/malloc-test: Fix possible memory overrun
Change memset address to use actual buffer instead of pointer stored in symbol value.
Signed-off-by: Jakub Czapiga jacz@semihalf.com Change-Id: I19f0718c657d565e515157e66367573e08f51254 --- M tests/lib/malloc-test.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/52136/1
diff --git a/tests/lib/malloc-test.c b/tests/lib/malloc-test.c index fefacbb..b70de06 100644 --- a/tests/lib/malloc-test.c +++ b/tests/lib/malloc-test.c @@ -50,7 +50,7 @@
static int setup_calloc_test(void **state) { - memset(&_heap, 0xFF, TEST_HEAP_SZ); + memset(_test_heap, 0xFF, TEST_HEAP_SZ); return setup_test(state); }