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:Kees Cook <keescook@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org>
Loading
Please register or sign in to comment