Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5619448f authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

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: default avatarH. Peter Anvin <hpa@zytor.com>
parent a26ee60f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */