Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
bzip2/lzma: fix constant in decompress_inflate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H. Peter Anvin committed Jan 8, 2009
1 parent a26ee60 commit 5619448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/decompress_inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len,
set_error_fn(error_fn);
rc = -1;
if (flush) {
out_len = 0x8100; /* 32 K */
out_len = 0x8000; /* 32 K */
out_buf = malloc(out_len);
} else {
out_len = 0x7fffffff; /* no limit */
Expand Down

0 comments on commit 5619448

Please sign in to comment.