From: Bdale Garbee Date: Mon, 19 Mar 2012 10:08:04 +0000 (+0100) Subject: apply patch in working tree X-Git-Tag: debian/1.4-5 X-Git-Url: https://git.gag.com/?p=debian%2Fgzip;a=commitdiff_plain;h=2c279ee6f6b4ec0d34dc5b8573959a5322248bb4 apply patch in working tree --- 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; }