xz-analysis-mirror/src
Lasse Collin dd13b66bf5 liblzma: Fix possibility of incorrect LZMA_BUF_ERROR.
lzma_code() could incorrectly return LZMA_BUF_ERROR if
all of the following was true:

  - The caller knows how many bytes of output to expect
    and only provides that much output space.

  - When the last output bytes are decoded, the
    caller-provided input buffer ends right before
    the LZMA2 end of payload marker. So LZMA2 won't
    provide more output anymore, but it won't know it
    yet and thus won't return LZMA_STREAM_END yet.

  - A BCJ filter is in use and it hasn't left any
    unfiltered bytes in the temp buffer. This can happen
    with any BCJ filter, but in practice it's more likely
    with filters other than the x86 BCJ.

Another situation where the bug can be triggered happens
if the uncompressed size is zero bytes and no output space
is provided. In this case the decompression can fail even
if the whole input file is given to lzma_code().

A similar bug was fixed in XZ Embedded on 2011-09-19.
2012-05-29 12:54:47 +03:00
..
common Workaround unusual SIZE_MAX on SCO OpenServer. 2011-09-05 16:05:44 +03:00
liblzma liblzma: Fix possibility of incorrect LZMA_BUF_ERROR. 2012-05-29 12:54:47 +03:00
lzmainfo Add underscores to attributes (__attribute((__foo__))). 2011-05-17 12:27:22 +03:00
scripts Fix exit status of xzgrep when grepping binary files. 2012-05-24 18:52:48 +03:00
xz xz: Don't show a huge number in -vv when memory limit is disabled. 2012-05-29 12:54:47 +03:00
xzdec Add underscores to attributes (__attribute((__foo__))). 2011-05-17 12:27:22 +03:00
Makefile.am Build: Add options to disable individual command line tools. 2010-10-08 15:25:45 +03:00