From: Kees Cook Date: Tue, 15 Apr 2014 17:28:12 +0000 (-0700) Subject: bootm: set max decompression size for LZO X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=77cc8902e98f4b4a36688f454a07ad7bc82793a2;p=project%2Fbcm63xx%2Fu-boot.git bootm: set max decompression size for LZO The LZO decompressor wasn't initializing the maximum output size, which meant it would fail to decompress most of the time. Reported-by: Matthias Weißer Signed-off-by: Kees Cook Tested-by: Matthias Weißer Acked-by: Simon Glass --- diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 9751edc907..c243a5bd78 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -453,7 +453,7 @@ static int bootm_load_os(bootm_headers_t *images, unsigned long *load_end, #endif /* CONFIG_LZMA */ #ifdef CONFIG_LZO case IH_COMP_LZO: { - size_t size; + size_t size = unc_len; printf(" Uncompressing %s ... ", type_name);