]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Check the return value of lzma_index_append() in threaded encoder.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 22 Feb 2022 00:04:18 +0000 (02:04 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 22 Feb 2022 00:04:18 +0000 (02:04 +0200)
commit4f78f5fcf63592f2d77e921cfe0d5de300867374
tree66b277211e1ff34d00546ab75d03bc766329122f
parent5313ad66b40aab822ddca3e9905254cb99a4080d
liblzma: Check the return value of lzma_index_append() in threaded encoder.

If lzma_index_append() failed (most likely memory allocation failure)
it could have gone unnoticed and the resulting .xz file would have
an incorrect Index. Decompressing such a file would produce the
correct uncompressed data but then an error would occur when
verifying the Index field.
src/liblzma/common/stream_encoder_mt.c