pull/1051/merge
AntonMoryakov 2 months ago committed by GitHub
commit 75d95a5f1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      inflate.c

@ -232,7 +232,7 @@ int ZEXPORT inflatePrime(z_streamp strm, int bits, int value) {
state->bits = 0;
return Z_OK;
}
if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR;
if (bits > 16 || state->bits + (uInt)bits >= 32) return Z_STREAM_ERROR;
value &= (1L << bits) - 1;
state->hold += (unsigned)value << state->bits;
state->bits += (uInt)bits;

Loading…
Cancel
Save