]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Set all values in lzma_lz_encoder to NULL after allocation.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 7 May 2024 16:56:46 +0000 (19:56 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 7 May 2024 16:56:46 +0000 (19:56 +0300)
commit74d36a57c5fe65e5447f61a6ed0b57c6bb7c4f0f
tree1fd3dca376425d4051cde499e683523ede26a327
parent176ae9073c1ca66669d2174aba58e51e94611f6e
liblzma: Set all values in lzma_lz_encoder to NULL after allocation.

This is unlikely to be a bug in an existing application since it relies
on calling lzma_filters_update() on an LZMA1 encoder in the first place.
For instance, it does not affect xz because lzma_filters_update() can
only be used when encoding to the .xz format.

(based on commit 8191720eac950a5db89c4d33d6beea6316a49b19)
src/liblzma/lz/lz_encoder.c