diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:20:29 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:20:29 -0700 |
commit | 14763ac7c6c03bca62c39e35c03cf5bfc7728802 (patch) | |
tree | f1055d11ef7b282b698ce7c40e1a9c061413cbdf /infcodes.c | |
parent | c34c1fcbb19852ca35216ad66276f4f86af3fc22 (diff) | |
download | zlib-1.1.3.tar.gz zlib-1.1.3.tar.bz2 zlib-1.1.3.zip |
zlib 1.1.3v1.1.3
Diffstat (limited to 'infcodes.c')
-rw-r--r-- | infcodes.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -221,6 +221,13 @@ int r; | |||
221 | c->mode = START; | 221 | c->mode = START; |
222 | break; | 222 | break; |
223 | case WASH: /* o: got eob, possibly more output */ | 223 | case WASH: /* o: got eob, possibly more output */ |
224 | if (k > 7) /* return unused byte, if any */ | ||
225 | { | ||
226 | Assert(k < 16, "inflate_codes grabbed too many bytes") | ||
227 | k -= 8; | ||
228 | n++; | ||
229 | p--; /* can always return one */ | ||
230 | } | ||
224 | FLUSH | 231 | FLUSH |
225 | if (s->read != s->write) | 232 | if (s->read != s->write) |
226 | LEAVE | 233 | LEAVE |