Skip to content

Commit

Permalink
bzip2/lzma: fix decompress_inflate.c vs multi-block-with-embedded-fil…
Browse files Browse the repository at this point in the history
…ename

Impact: Bug fix

Fix gunzip uncompression, so that it also works with files with
embedded filenames that are larger than one block.

Signed-off-by: Alain Knaff <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
  • Loading branch information
Alain Knaff authored and H. Peter Anvin committed Jan 8, 2009
1 parent 5619448 commit 6c11b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/decompress_inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len,
strm->next_in++;
strm->next_in++;
}
strm->avail_in = len - 10;
strm->avail_in = len - (strm->next_in - zbuf);

strm->next_out = out_buf;
strm->avail_out = out_len;
Expand Down

0 comments on commit 6c11b12

Please sign in to comment.