]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Stream decoder: Fix restarting after LZMA_MEMLIMIT_ERROR.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 28 Sep 2022 08:05:15 +0000 (11:05 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 28 Sep 2022 08:05:15 +0000 (11:05 +0300)
commit660739f99ab211edec4071de98889fb32ed04e98
treef221ec2704f30cbdc1855ba4894772f1e0e1bfd5
parent7e68fda58c74ad9e5b876cc22fcbe80fc0e4747b
liblzma: Stream decoder: Fix restarting after LZMA_MEMLIMIT_ERROR.

If lzma_code() returns LZMA_MEMLIMIT_ERROR it is now possible
to use lzma_memlimit_set() to increase the limit and continue
decoding. This was supposed to work from the beginning but
there was a bug. With other decoders (.lzma or threaded .xz)
this already worked correctly.
src/liblzma/common/stream_decoder.c