diff options
author | Jakub Czapiga <jacz@semihalf.com> | 2021-12-14 16:47:49 +0000 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-12-15 17:07:27 +0000 |
commit | 19ad39b7f260c4c27b4cb74ae12215f57a750fda (patch) | |
tree | b692ee81e2f9bc2979410e861c8b78214f5d4688 /tests | |
parent | a1430c340ead7cc812a64a8269b712791ae598d9 (diff) |
tests/lib/lzma-test: Fix uninitialized array error
Change-Id: I5b10eef3dd82068f97d4d875f3da813a5aca07a7
Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Reported-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60112
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/lzma-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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))); |