提交 5619448f 编写于 作者: H H. Peter Anvin

bzip2/lzma: fix constant in decompress_inflate

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: NH. Peter Anvin <hpa@zytor.com>
上级 a26ee60f
...@@ -41,7 +41,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len, ...@@ -41,7 +41,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len,
set_error_fn(error_fn); set_error_fn(error_fn);
rc = -1; rc = -1;
if (flush) { if (flush) {
out_len = 0x8100; /* 32 K */ out_len = 0x8000; /* 32 K */
out_buf = malloc(out_len); out_buf = malloc(out_len);
} else { } else {
out_len = 0x7fffffff; /* no limit */ out_len = 0x7fffffff; /* no limit */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册