diff options
-rw-r--r-- | lib/compression/lzxpress.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compression/lzxpress.c b/lib/compression/lzxpress.c index 26b1bd5052..0396c9ddcb 100644 --- a/lib/compression/lzxpress.c +++ b/lib/compression/lzxpress.c @@ -80,6 +80,7 @@ ssize_t lzxpress_compress(const uint8_t *uncompressed, uncompressed_pos = 0; indic = 0; + *(uint32_t *)compressed = 0; compressed_pos = sizeof(uint32_t); indic_pos = &compressed[0]; @@ -223,6 +224,7 @@ ssize_t lzxpress_compress(const uint8_t *uncompressed, for (; (indic_bit % 32) != 0; indic_bit++) indic |= 0 << (32 - ((indic_bit % 32) + 1)); + *(uint32_t *)&compressed[compressed_pos] = 0; *(uint32_t *)indic_pos = indic; compressed_pos += sizeof(uint32_t); } |