projects
/
debian
/
gzip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a1bef0
)
apply patch in working tree
debian/1.4-5
author
Bdale Garbee
<bdale@gag.com>
Mon, 19 Mar 2012 10:08:04 +0000
(11:08 +0100)
committer
Bdale Garbee
<bdale@gag.com>
Mon, 19 Mar 2012 10:08:04 +0000
(11:08 +0100)
deflate.c
patch
|
blob
|
history
diff --git
a/deflate.c
b/deflate.c
index 1b3ac524b59f823ac3897a21e5f16d6d21d246e4..a551fa3a409d640905fed9e329d10038731f13a5 100644
(file)
--- 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;
}