]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Document the lzma_stream_buffer_decode() bug
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 19 May 2026 15:07:47 +0000 (18:07 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 27 May 2026 10:00:10 +0000 (13:00 +0300)
src/liblzma/api/lzma/container.h

index 37d9ab92f4b52da5384ffd0b08fdf2a8a486f915..ea773946f1bb19c2fd8753823d7e6f0e5a843474 100644 (file)
@@ -935,7 +935,10 @@ extern LZMA_API(lzma_ret) lzma_lzip_decoder(
  *              - LZMA_MEM_ERROR
  *              - LZMA_MEMLIMIT_ERROR: Memory usage limit was reached.
  *                The minimum required memlimit value was stored to *memlimit.
- *              - LZMA_BUF_ERROR: Output buffer was too small.
+ *              - LZMA_BUF_ERROR: Output buffer was too small. (liblzma 5.8.3
+ *                and older have a bug: LZMA_BUF_ERROR may be returned when
+ *                the input seems to be truncated. The correct error code
+ *                would be LZMA_DATA_ERROR.)
  *              - LZMA_PROG_ERROR
  */
 extern LZMA_API(lzma_ret) lzma_stream_buffer_decode(