1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00
xz-archive/src/liblzma
Lasse Collin 5761603265 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.
2017-03-30 19:52:24 +03:00
..
api liblzma: Fix handling of memlimit == 0 in lzma_index_decoder(). 2017-03-30 19:52:24 +03:00
check liblzma: Disable external SHA-256 by default. 2016-06-28 21:09:46 +03:00
common liblzma: Fix handling of memlimit == 0 in lzma_index_decoder(). 2017-03-30 19:52:24 +03:00
delta liblzma: Avoid multiple definitions of lzma_coder structures. 2016-12-28 19:59:32 +02:00
lz liblzma: Avoid multiple definitions of lzma_coder structures. 2016-12-28 19:59:32 +02:00
lzma liblzma: Avoid multiple definitions of lzma_coder structures. 2016-12-28 19:59:32 +02:00
rangecoder liblzma: Check that the first byte of range encoded data is 0x00. 2012-06-28 10:47:49 +03:00
simple liblzma: Avoid multiple definitions of lzma_coder structures. 2016-12-28 19:59:32 +02:00
liblzma.map Bump version and soname for 5.2.0. 2014-12-21 18:11:17 +02:00
liblzma.pc.in liblzma: Fix Libs.private in liblzma.pc to include -lrt when needed. 2012-04-19 14:02:25 +03:00
liblzma_w32res.rc Added public domain notice into a few files. 2009-07-18 11:26:39 +03:00
Makefile.am Bump version and soname for 5.2.3. 2016-12-30 13:26:36 +02:00
validate_map.sh liblzma: Use symbol versioning. 2011-05-28 15:55:39 +03:00