mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
liblzma: Add API doc note about the .xz decoder LZMA_MEMLIMIT_ERROR bug.
The bug was fixed in 660739f99a
.
This commit is contained in:
parent
8cc9874a79
commit
508a44372c
1 changed files with 11 additions and 0 deletions
|
@ -145,6 +145,12 @@ typedef enum {
|
||||||
* specified memory usage limit. To continue decoding,
|
* specified memory usage limit. To continue decoding,
|
||||||
* the memory usage limit has to be increased with
|
* the memory usage limit has to be increased with
|
||||||
* lzma_memlimit_set().
|
* lzma_memlimit_set().
|
||||||
|
*
|
||||||
|
* liblzma 5.2.6 and earlier had a bug in single-threaded .xz
|
||||||
|
* decoder (lzma_stream_decoder()) which made it impossible
|
||||||
|
* to continue decoding after LZMA_MEMLIMIT_ERROR even if
|
||||||
|
* the limit was increased using lzma_memlimit_set().
|
||||||
|
* Other decoders worked correctly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
LZMA_FORMAT_ERROR = 7,
|
LZMA_FORMAT_ERROR = 7,
|
||||||
|
@ -691,6 +697,11 @@ extern LZMA_API(uint64_t) lzma_memlimit_get(const lzma_stream *strm)
|
||||||
* return LZMA_OK. Later versions treat 0 as if 1 had been specified (so
|
* return LZMA_OK. Later versions treat 0 as if 1 had been specified (so
|
||||||
* lzma_memlimit_get() will return 1 even if you specify 0 here).
|
* lzma_memlimit_get() will return 1 even if you specify 0 here).
|
||||||
*
|
*
|
||||||
|
* liblzma 5.2.6 and earlier had a bug in single-threaded .xz decoder
|
||||||
|
* (lzma_stream_decoder()) which made it impossible to continue decoding
|
||||||
|
* after LZMA_MEMLIMIT_ERROR even if the limit was increased using
|
||||||
|
* lzma_memlimit_set(). Other decoders worked correctly.
|
||||||
|
*
|
||||||
* \return - LZMA_OK: New memory usage limit successfully set.
|
* \return - LZMA_OK: New memory usage limit successfully set.
|
||||||
* - LZMA_MEMLIMIT_ERROR: The new limit is too small.
|
* - LZMA_MEMLIMIT_ERROR: The new limit is too small.
|
||||||
* The limit was not changed.
|
* The limit was not changed.
|
||||||
|
|
Loading…
Reference in a new issue