Commit 6c11b12ac6f101732d43b5682f5b3ae4dda4205f

Authored by Alain Knaff
Committed by H. Peter Anvin
1 parent 5619448fc5

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: Alain Knaff <alain@knaff.lu>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

lib/decompress_inflate.c
... ... @@ -97,7 +97,7 @@
97 97 strm->next_in++;
98 98 strm->next_in++;
99 99 }
100   - strm->avail_in = len - 10;
  100 + strm->avail_in = len - (strm->next_in - zbuf);
101 101  
102 102 strm->next_out = out_buf;
103 103 strm->avail_out = out_len;