Skip to content
Snippets Groups Projects
Commit afca2942 authored by Kees Cook's avatar Kees Cook Committed by Simon Glass
Browse files

lzma: correctly bounds-check output buffer


The output buffer size must be correctly passed to the lzma decoder or
there is a risk of overflowing memory during decompression. Switching
to the LZMA_FINISH_END mode means nothing is left in an unknown state
once the buffer becomes full.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent b75650d8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment