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:
a26ee60
)
bzip2/lzma: fix constant in decompress_inflate
author
H. Peter Anvin
<hpa@zytor.com>
Thu, 8 Jan 2009 23:09:12 +0000
(15:09 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Thu, 8 Jan 2009 23:09:12 +0000
(15:09 -0800)
Impact: Cleanup
Fix constant 0x8100 /* 32K */; according to Alain the value 0x8100 was
left over test code to test misalignment, the correct value is indeed
0x8000 == 32K.
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 163e66aea5f6a249b04510bf486a40d94e35289d..d2e7c758d1ca1df8c1025133612fa4f74575d108 100644
(file)
--- a/
lib/decompress_inflate.c
+++ b/
lib/decompress_inflate.c
@@
-41,7
+41,7
@@
STATIC int INIT gunzip(unsigned char *buf, int len,
set_error_fn(error_fn);
rc = -1;
if (flush) {
- out_len = 0x8
1
00; /* 32 K */
+ out_len = 0x8
0
00; /* 32 K */
out_buf = malloc(out_len);
} else {
out_len = 0x7fffffff; /* no limit */