diff options
Diffstat (limited to 'lib/libUPnP/Neptune/ThirdParty/zlib-1.2.8/inflate.c')
-rw-r--r-- | lib/libUPnP/Neptune/ThirdParty/zlib-1.2.8/inflate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libUPnP/Neptune/ThirdParty/zlib-1.2.8/inflate.c b/lib/libUPnP/Neptune/ThirdParty/zlib-1.2.8/inflate.c index 870f89bb4d..ac03cd4a04 100644 --- a/lib/libUPnP/Neptune/ThirdParty/zlib-1.2.8/inflate.c +++ b/lib/libUPnP/Neptune/ThirdParty/zlib-1.2.8/inflate.c @@ -1490,10 +1490,11 @@ 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 + (void)subvert; state->sane = 1; return Z_DATA_ERROR; #endif @@ -1504,7 +1505,7 @@ 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 (-1L ^ 0xFFFF); state = (struct inflate_state FAR *)strm->state; return ((long)(state->back) << 16) + (state->mode == COPY ? state->length : |