From 19ad39b7f260c4c27b4cb74ae12215f57a750fda Mon Sep 17 00:00:00 2001 From: Jakub Czapiga Date: Tue, 14 Dec 2021 16:47:49 +0000 Subject: tests/lib/lzma-test: Fix uninitialized array error Change-Id: I5b10eef3dd82068f97d4d875f3da813a5aca07a7 Signed-off-by: Jakub Czapiga Reported-by: Paul Fagerburg Reviewed-on: https://review.coreboot.org/c/coreboot/+/60112 Reviewed-by: Paul Fagerburg Tested-by: build bot (Jenkins) --- tests/lib/lzma-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/lib') diff --git a/tests/lib/lzma-test.c b/tests/lib/lzma-test.c index 3918890e8e..8ae9ceda18 100644 --- a/tests/lib/lzma-test.c +++ b/tests/lib/lzma-test.c @@ -130,7 +130,7 @@ static void test_ulzman_correct_file(void **state) static void test_ulzman_input_too_small(void **state) { - uint8_t in_buf[32]; + uint8_t in_buf[32] = {0}; uint8_t out_buf[32]; assert_int_equal(0, ulzman(in_buf, LZMA_PROPERTIES_SIZE, out_buf, sizeof(out_buf))); -- cgit v1.2.3