From: Ian Jackson Date: Fri, 11 Feb 2011 17:49:13 +0000 (+0000) Subject: libxc: increase lzma max memory constant to 128Mby X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a14b0eb5844cda6752aa98ab5509e565b92b17d4;p=people%2Fliuw%2Flibxenctrl-split%2Fxen.git 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 --- 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");