Skip to content
Snippets Groups Projects
  • Antonios Vamporakis's avatar
    4d3b8a0d
    lzma: fix buffer bound check error · 4d3b8a0d
    Antonios Vamporakis authored
    
    Variable uncompressedSize references the space available, while outSizeFull is
    the actual expected uncompressed size. Using the wrong value causes LzmaDecode
    to return SZ_ERROR_INPUT_EOF. Problem was introduced in commit afca2942. While
    at it add additional debug message.
    
    Signed-off-by: default avatarAntonios Vamporakis <ant@area128.com>
    CC: Kees Cook <keescook@chromium.org>
    CC: Simon Glass <sjg@chromium.org>
    CC: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
    CC: Luka Perkov <luka@openwrt.org>
    4d3b8a0d
    History
    lzma: fix buffer bound check error
    Antonios Vamporakis authored
    
    Variable uncompressedSize references the space available, while outSizeFull is
    the actual expected uncompressed size. Using the wrong value causes LzmaDecode
    to return SZ_ERROR_INPUT_EOF. Problem was introduced in commit afca2942. While
    at it add additional debug message.
    
    Signed-off-by: default avatarAntonios Vamporakis <ant@area128.com>
    CC: Kees Cook <keescook@chromium.org>
    CC: Simon Glass <sjg@chromium.org>
    CC: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
    CC: Luka Perkov <luka@openwrt.org>