提交 6c11b12a 编写于 作者: A Alain Knaff 提交者: H. Peter Anvin

bzip2/lzma: fix decompress_inflate.c vs multi-block-with-embedded-filename

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: NAlain Knaff <alain@knaff.lu>
Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
上级 5619448f
...@@ -97,7 +97,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len, ...@@ -97,7 +97,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len,
strm->next_in++; strm->next_in++;
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->next_out = out_buf;
strm->avail_out = out_len; strm->avail_out = out_len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册