提交 77cc8902 编写于 作者: K Kees Cook 提交者: Tom Rini

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: NMatthias Weißer <weisserm@arcor.de>
Signed-off-by: NKees Cook <keescook@chromium.org>
Tested-by: NMatthias Weißer <weisserm@arcor.de>
Acked-by: NSimon Glass <sjg@chromium.org>
上级 0e6256d0
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册