]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
libxc: increase lzma max memory constant to 128Mby
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 11 Feb 2011 17:49:13 +0000 (17:49 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 11 Feb 2011 17:49:13 +0000 (17:49 +0000)
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>
tools/libxc/xc_dom_bzimageloader.c

index 1008945caad91937753f13b39566e323e936845c..d14acbdff75d6bb2ff30e469b03e9a756fe64317 100644 (file)
@@ -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");