From 5cf0930ba5cea55fc688151c9b718110b2c6adfd Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Thu, 22 Sep 2011 23:48:04 -0700 Subject: [PATCH] Assure that high-water mark initialization is always applied in deflate. --- deflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deflate.c b/deflate.c index f0765d3..06ca0ee 100644 --- a/deflate.c +++ b/deflate.c @@ -1374,7 +1374,7 @@ local void fill_window(s) #endif more += wsize; } - if (s->strm->avail_in == 0) return; + if (s->strm->avail_in == 0) break; /* If there was no sliding: * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 && -- GitLab