aboutsummaryrefslogtreecommitdiff
path: root/tests/test_files.sh
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2017-03-30 18:58:18 +0300
committerLasse Collin <lasse.collin@tukaani.org>2017-03-30 19:52:24 +0300
commit57616032650f03840480b696d7878acdd2065521 (patch)
tree4f3ab2f7730720cd248b82d638ba1de7abf4b611 /tests/test_files.sh
parentBump version and soname for 5.2.3. (diff)
downloadxz-57616032650f03840480b696d7878acdd2065521.tar.xz
liblzma: Fix handling of memlimit == 0 in lzma_index_decoder().
It returned LZMA_PROG_ERROR, which was done to avoid zero as the limit (because it's a special value elsewhere), but using LZMA_PROG_ERROR is simply inconvenient and can cause bugs. The fix/workaround is to treat 0 as if it were 1 byte. It's effectively the same thing. The only weird consequence is that then lzma_memlimit_get() will return 1 even when 0 was specified as the limit. This fixes a very rare corner case in xz --list where a specific memory usage limit and a multi-stream file could print the error message "Internal error (bug)" instead of saying that the memory usage limit is too low.
Diffstat (limited to 'tests/test_files.sh')
0 files changed, 0 insertions, 0 deletions