bootm: set max decompression size for LZO
PATCH 1/1 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 <[email protected]>
Signed-off-by Kees Cook <[email protected]>
Tested-by Matthias Wei?er <[email protected]>
--- common/cmd_bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/cmd_bootm.c +1 -1
@@ -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);
Signature · 6 lines
1.7.9.5 -- Kees Cook Chrome OS Security
PATCH 1/1 bootm: set max decompression size for LZO
Quoted 7 lines · Kees Cook
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 <[email protected]>Signed-off-by Kees Cook <[email protected]>Tested-by Matthias Wei?er <[email protected]>
Acked-by Simon Glass <[email protected]>
Quoted 7 lines · Kees Cook
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 <[email protected]>Signed-off-by Kees Cook <[email protected]>Tested-by Matthias Wei?er <[email protected]>Acked-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140418/a2cf5ddc/attachment.pgp>