X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/5ce7e22af68d8fc45cd08baff67d6e49ac584f43..beb2ce1f2dd06501d2bc914d8b19a3ea65c02e8f:/zlib/inflate.c diff --git a/zlib/inflate.c b/zlib/inflate.c index 091b9a22..3a945f3c 100644 --- a/zlib/inflate.c +++ b/zlib/inflate.c @@ -1509,8 +1509,8 @@ int subvert; if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; state = (struct inflate_state FAR *)strm->state; - state->sane = !subvert; #ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR + state->sane = !subvert; return Z_OK; #else state->sane = 1; @@ -1523,7 +1523,8 @@ z_streamp strm; { struct inflate_state FAR *state; - if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16; + if (strm == Z_NULL || strm->state == Z_NULL) + return (long)(((unsigned long)0 - 1) << 16); state = (struct inflate_state FAR *)strm->state; return ((long)(state->back) << 16) + (state->mode == COPY ? state->length :