diff options
author | Mark Brown <broonie@linaro.org> | 2014-02-10 17:37:55 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-10 17:37:55 +0000 |
commit | 4ed15484d2b90c28ecb0eb4ed0330049343c60ad (patch) | |
tree | a95b5adbc989002647a42b0f392f311015a0fa02 /lib | |
parent | 0f3550b731084e2790caf1d73bfe0e3a454aafae (diff) | |
parent | 4b9c8ddadce3ec70fa5d93875adeda861b21c84e (diff) |
Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-android
Diffstat (limited to 'lib')
-rw-r--r-- | 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 19ff89e34eec..d619b28c456f 100644 --- 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 = 0x7fffffff; /* no limit */ + out_len = ((size_t)~0) - (size_t)out_buf; /* no limit */ } if (!out_buf) { error("Out of memory while allocating output buffer"); |