Skip to content
Snippets Groups Projects
Commit 77cc8902 authored by Kees Cook's avatar Kees Cook Committed by Tom Rini
Browse files

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: default avatarMatthias Weißer <weisserm@arcor.de>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Tested-by: default avatarMatthias Weißer <weisserm@arcor.de>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 0e6256d0
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment