From 1dbfb8e36f81ced8474ce048c2d0e18ac07de60d Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 2 Jan 2014 00:43:18 -0600 Subject: [PATCH] lzms_init_compressor(): Do not zero end of window --- src/lzms-compress.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lzms-compress.c b/src/lzms-compress.c index 72aef31b..a18da578 100644 --- a/src/lzms-compress.c +++ b/src/lzms-compress.c @@ -993,7 +993,6 @@ lzms_init_compressor(struct lzms_compressor *ctx, const u8 *udata, u32 ulen, /* Copy the uncompressed data into the @ctx->window buffer. */ memcpy(ctx->window, udata, ulen); - memset(&ctx->window[ulen], 0, 8); ctx->cur_window_pos = 0; ctx->window_size = ulen; -- 2.43.0