X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=deflate.c;h=a551fa3a409d640905fed9e329d10038731f13a5;hb=1818209f5c4879522d69a09bedb0553543d6889e;hp=1b3ac524b59f823ac3897a21e5f16d6d21d246e4;hpb=97f825c37400d5684e096fe57c244e1eb20b509f;p=debian%2Fgzip 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; }