aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_dom_bzimageloader.c
diff options
context:
space:
mode:
authorIan Jackson <Ian.Jackson@eu.citrix.com>2011-02-11 17:49:13 +0000
committerIan Jackson <Ian.Jackson@eu.citrix.com>2011-02-11 17:49:13 +0000
commita14b0eb5844cda6752aa98ab5509e565b92b17d4 (patch)
tree5a644b77f91114b4ca7d3118287f8c4208252d0b /tools/libxc/xc_dom_bzimageloader.c
parentf54e9ea9c450d0a32c28d8be169d94b0b3f2a838 (diff)
downloadxen-a14b0eb5844cda6752aa98ab5509e565b92b17d4.tar.gz
xen-a14b0eb5844cda6752aa98ab5509e565b92b17d4.tar.bz2
xen-a14b0eb5844cda6752aa98ab5509e565b92b17d4.zip
libxc: increase lzma max memory constant to 128Mby
According to lzma's configure.ac (!) the minimum memory limit to cope with arbitrary input is 128Mby (!) This is obviously an unreasonable amount of memory for this kind of task, but we need to increase the constant limit for it not to randomly fail. So do so. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_dom_bzimageloader.c')
-rw-r--r--tools/libxc/xc_dom_bzimageloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_dom_bzimageloader.c b/tools/libxc/xc_dom_bzimageloader.c
index 1008945caa..d14acbdff7 100644
--- a/tools/libxc/xc_dom_bzimageloader.c
+++ b/tools/libxc/xc_dom_bzimageloader.c
@@ -152,7 +152,7 @@ static int xc_try_lzma_decode(
int outsize;
const char *msg;
- ret = lzma_alone_decoder(&stream, 32*1024*1024);
+ ret = lzma_alone_decoder(&stream, 128*1024*1024);
if ( ret != LZMA_OK )
{
DOMPRINTF("LZMA: Failed to init stream decoder");