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>
This commit is contained in:
parent
0e6256d077
commit
77cc8902e9
|
@ -453,7 +453,7 @@ static int bootm_load_os(bootm_headers_t *images, unsigned long *load_end,
|
||||||
#endif /* CONFIG_LZMA */
|
#endif /* CONFIG_LZMA */
|
||||||
#ifdef CONFIG_LZO
|
#ifdef CONFIG_LZO
|
||||||
case IH_COMP_LZO: {
|
case IH_COMP_LZO: {
|
||||||
size_t size;
|
size_t size = unc_len;
|
||||||
|
|
||||||
printf(" Uncompressing %s ... ", type_name);
|
printf(" Uncompressing %s ... ", type_name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue