From 2c279ee6f6b4ec0d34dc5b8573959a5322248bb4 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Mon, 19 Mar 2012 11:08:04 +0100 Subject: [PATCH] apply patch in working tree --- deflate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deflate.c b/deflate.c index 1b3ac52..a551fa3 100644 --- a/deflate.c +++ b/deflate.c @@ -581,6 +581,8 @@ local void fill_window() n = read_buf((char*)window+strstart+lookahead, more); if (n == 0 || n == (unsigned)EOF) { eofile = 1; + /* Don't let garbage pollute the dictionary. */ + memzero (window + strstart + lookahead, MIN_MATCH - 1); } else { lookahead += n; } -- 2.30.2