Skip to content

Commit

Permalink
fix re read head data for gzip when decompress multi concatenated gzip;
Browse files Browse the repository at this point in the history
  • Loading branch information
housisong committed Aug 12, 2024
1 parent 0603f39 commit 7f88823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/gzip_decompress_by_stream_mt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int _gzip_decompress_by_stream(struct libdeflate_decompressor *d,
{//gzip head
if (code_cur+GZIP_MIN_OVERHEAD>code_buf_size)
_read_code_from_file();
ret=libdeflate_gzip_decompress_head(code_buf,code_buf_size-code_cur,&actual_in_nbytes_ret);
ret=libdeflate_gzip_decompress_head(code_buf+code_cur,code_buf_size-code_cur,&actual_in_nbytes_ret);
_check_d(ret);
code_cur+=actual_in_nbytes_ret;
}
Expand Down

1 comment on commit 7f88823

@sisong
Copy link
Owner

@sisong sisong commented on 7f88823 Aug 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

close #1

Please sign in to comment.