summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2021-12-14 16:47:49 +0000
committerFelix Held <felix-coreboot@felixheld.de>2021-12-15 17:07:27 +0000
commit19ad39b7f260c4c27b4cb74ae12215f57a750fda (patch)
treeb692ee81e2f9bc2979410e861c8b78214f5d4688 /tests
parenta1430c340ead7cc812a64a8269b712791ae598d9 (diff)
downloadcoreboot-19ad39b7f260c4c27b4cb74ae12215f57a750fda.tar.gz
coreboot-19ad39b7f260c4c27b4cb74ae12215f57a750fda.tar.bz2
coreboot-19ad39b7f260c4c27b4cb74ae12215f57a750fda.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/lzma-test.c b/tests/lib/lzma-test.c
index 3918890e8e83..8ae9ceda1829 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)));