[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1231457340-18045-2-git-send-email-hpa@zytor.com>
Date: Thu, 8 Jan 2009 15:28:58 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Alain Knaff <alain@...ff.lu>, Sam Ravnborg <sam@...nborg.org>,
x86@...nel.org
Cc: linux-kernel@...r.kernel.org, "H. Peter Anvin" <hpa@...or.com>
Subject: [PATCH] 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: H. Peter Anvin <hpa@...or.com>
---
lib/decompress_inflate.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c
index 163e66a..d2e7c75 100644
--- 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 = 0x8100; /* 32 K */
+ out_len = 0x8000; /* 32 K */
out_buf = malloc(out_len);
} else {
out_len = 0x7fffffff; /* no limit */
--
1.5.6.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists