Skip to content

Commit

Permalink
Fix bug in inflateSync() for data held in bit buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Aug 24, 2023
1 parent 88e50f1 commit 5af7cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ int ZEXPORT inflateSync(z_streamp strm) {
/* 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) {
Expand Down

0 comments on commit 5af7cef

Please sign in to comment.