projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5619448
)
bzip2/lzma: fix decompress_inflate.c vs multi-block-with-embedded-filename
author
Alain Knaff
<alain@knaff.lu>
Thu, 8 Jan 2009 23:10:19 +0000
(15:10 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Thu, 8 Jan 2009 23:10:19 +0000
(15:10 -0800)
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>
lib/decompress_inflate.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/decompress_inflate.c
b/lib/decompress_inflate.c
index d2e7c758d1ca1df8c1025133612fa4f74575d108..839a329b4fc43e5d6e40ce912fdfe3ed6bfc4834 100644
(file)
--- a/
lib/decompress_inflate.c
+++ b/
lib/decompress_inflate.c
@@
-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;