summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-04-15 10:28:12 -0700
committerTom Rini <trini@ti.com>2014-04-18 11:43:36 -0400
commit77cc8902e98f4b4a36688f454a07ad7bc82793a2 (patch)
tree1668ffa4c7e0131d1de88511a36a91afd6b512b7 /common
parent0e6256d0770f5f2bda80e9ce1aa8dd404de4bcdf (diff)
downloadu-boot-imx-77cc8902e98f4b4a36688f454a07ad7bc82793a2.zip
u-boot-imx-77cc8902e98f4b4a36688f454a07ad7bc82793a2.tar.gz
u-boot-imx-77cc8902e98f4b4a36688f454a07ad7bc82793a2.tar.bz2
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 <weisserm@arcor.de> Signed-off-by: Kees Cook <keescook@chromium.org> Tested-by: Matthias Weißer <weisserm@arcor.de> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_bootm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 9751edc..c243a5b 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);