From 89fedafcc9b92fe86da92ae4dca869a99770eb3f Mon Sep 17 00:00:00 2001 From: Roy Oursler Date: Wed, 16 Nov 2016 15:06:01 -0700 Subject: [PATCH] igzip: Fix make_huff_code_lookup_table initialization bug. Change-Id: I192ce6c907271d52bfda5bf4be6d5b2a35a9d459 Signed-off-by: Roy Oursler --- igzip/igzip_inflate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/igzip/igzip_inflate.c b/igzip/igzip_inflate.c index 22ab077..09729b6 100644 --- a/igzip/igzip_inflate.c +++ b/igzip/igzip_inflate.c @@ -193,7 +193,7 @@ static void inline make_inflate_huff_code_large(struct inflate_huff_code_large * copy_size = (1 << last_length); /* Initialize short_code_lookup, so invalid lookups process data */ - memset(short_code_lookup, 0x1d, copy_size * sizeof(*short_code_lookup)); + memset(short_code_lookup, 0x00, copy_size * sizeof(*short_code_lookup)); for (k = 0; k < code_list_len; k++) { i = code_list[k]; @@ -350,7 +350,7 @@ static void inline make_inflate_huff_code_small(struct inflate_huff_code_small * copy_size = (1 << last_length); /* Initialize short_code_lookup, so invalid lookups process data */ - memset(short_code_lookup, 0x1d, copy_size * sizeof(*short_code_lookup)); + memset(short_code_lookup, 0x00, copy_size * sizeof(*short_code_lookup)); for (k = 0; k < code_list_len; k++) { i = code_list[k];