diff options
Diffstat (limited to 'lib/libz/inflate.c')
-rw-r--r-- | lib/libz/inflate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libz/inflate.c b/lib/libz/inflate.c index a53b5c7..c6d3826 100644 --- a/lib/libz/inflate.c +++ b/lib/libz/inflate.c @@ -109,6 +109,7 @@ z_streamp strm; state = (struct inflate_state FAR *)strm->state; strm->total_in = strm->total_out = state->total = 0; strm->msg = Z_NULL; + strm->adler = 1; /* to support ill-conceived Java test suite */ state->mode = HEAD; state->last = 0; state->havedict = 0; @@ -861,6 +862,9 @@ int flush; } } + /* handle error breaks in while */ + if (state->mode == BAD) break; + /* build code tables */ state->next = state->codes; state->lencode = (code const FAR *)(state->next); |