From: Mark Adler Date: Fri, 23 Sep 2011 06:48:04 +0000 (-0700) Subject: Assure that high-water mark initialization is always applied in deflate. X-Git-Tag: v1.2.5.2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cf0930ba5cea55fc688151c9b718110b2c6adfd;p=thirdparty%2Fzlib-ng.git Assure that high-water mark initialization is always applied in deflate. --- diff --git a/deflate.c b/deflate.c index f0765d3bc..06ca0ee09 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 &&