Fix bug in inflateSync() for data held in bit buffer.
This commit is contained in:
parent
88e50f1705
commit
5af7cef45e
@ -1387,7 +1387,7 @@ int ZEXPORT inflateSync(z_streamp strm) {
|
|||||||
/* if first time, start search in bit buffer */
|
/* if first time, start search in bit buffer */
|
||||||
if (state->mode != SYNC) {
|
if (state->mode != SYNC) {
|
||||||
state->mode = SYNC;
|
state->mode = SYNC;
|
||||||
state->hold <<= state->bits & 7;
|
state->hold >>= state->bits & 7;
|
||||||
state->bits -= state->bits & 7;
|
state->bits -= state->bits & 7;
|
||||||
len = 0;
|
len = 0;
|
||||||
while (state->bits >= 8) {
|
while (state->bits >= 8) {
|
||||||
|
Loading…
Reference in New Issue
Block a user