zlib: adapted chromium zlib

This commit is contained in:
Roy Tam 2019-02-22 21:40:24 +08:00
commit df51e6d171
27 changed files with 4084 additions and 51 deletions

View file

@ -480,7 +480,8 @@ void FAR *out_desc;
case LEN:
/* use inflate_fast() if we have enough input and output */
if (have >= 6 && left >= 258) {
if (have >= INFLATE_FAST_MIN_HAVE &&
left >= INFLATE_FAST_MIN_LEFT) {
RESTORE();
if (state->whave < state->wsize)
state->whave = state->wsize - left;