Skip to content

Commit

Permalink
Patched window start position when restarting an index
Browse files Browse the repository at this point in the history
on a gzip stream with gzip's end of block terminators.
  • Loading branch information
circulosmeos committed Aug 26, 2019
1 parent 5a26660 commit 174e0be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gztool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,7 @@ local struct returned_output build_index(
strm.avail_in -= 8;
strm.next_in += 8;
printToStderr( VERBOSITY_EXCESSIVE, "END OF GZIP passed @%ld (totout=%ld, ftello=%ld)\n", totin, totout, ftello(in) );
totin+=8; // data is discarded from strm input, but it MUST be counted in total input
break;
// avail_in_0 doesn't need to be decremented as it tries to count raw stream input bytes
}
Expand Down

0 comments on commit 174e0be

Please sign in to comment.