From: Lasse Collin Date: Tue, 19 May 2026 15:07:47 +0000 (+0300) Subject: liblzma: Document the lzma_stream_buffer_decode() bug X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=c2fe308792d97ba41b898a009e4d9d98d1e75720;p=thirdparty%2Fxz.git liblzma: Document the lzma_stream_buffer_decode() bug --- diff --git a/src/liblzma/api/lzma/container.h b/src/liblzma/api/lzma/container.h index 37d9ab92..ea773946 100644 --- a/src/liblzma/api/lzma/container.h +++ b/src/liblzma/api/lzma/container.h @@ -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(