commit | 5af7cef45eeef86ddf6ab00b4e363c1eecaf47b6 | [log] [tgz] |
---|---|---|
author | Mark Adler <madler@alumni.caltech.edu> | Thu Aug 24 02:14:23 2023 -0400 |
committer | Mark Adler <madler@alumni.caltech.edu> | Thu Aug 24 02:14:23 2023 -0400 |
tree | 01abc75d01b61ed56da18ee40691c7b097783a78 | |
parent | 88e50f170525c0a6237ca5ed4db0c620af366fe7 [diff] |
Fix bug in inflateSync() for data held in bit buffer.
diff --git a/inflate.c b/inflate.c index b0757a9..94ecff0 100644 --- a/inflate.c +++ b/inflate.c
@@ -1387,7 +1387,7 @@ /* if first time, start search in bit buffer */ if (state->mode != SYNC) { state->mode = SYNC; - state->hold <<= state->bits & 7; + state->hold >>= state->bits & 7; state->bits -= state->bits & 7; len = 0; while (state->bits >= 8) {