projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[linux-2.6-block.git]
/
lib
/
decompress_inflate.c
diff --git
a/lib/decompress_inflate.c
b/lib/decompress_inflate.c
index 19ff89e34eec6b7aaec3d47b4a13aac9d6d70c1f..d619b28c456fc282d7d4c0c24db0ada6922601f6 100644
(file)
--- a/
lib/decompress_inflate.c
+++ b/
lib/decompress_inflate.c
@@
-48,7
+48,7
@@
STATIC int INIT gunzip(unsigned char *buf, int len,
out_len = 0x8000; /* 32 K */
out_buf = malloc(out_len);
} else {
- out_len =
0x7ffffff
f; /* no limit */
+ out_len =
((size_t)~0) - (size_t)out_bu
f; /* no limit */
}
if (!out_buf) {
error("Out of memory while allocating output buffer");