mirror of https://git.tukaani.org/xz.git
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 8191720eac
)
This commit is contained in:
parent
176ae9073c
commit
74d36a57c5
|
@ -548,6 +548,7 @@ lzma_lz_encoder_init(lzma_next_coder *next, const lzma_allocator *allocator,
|
||||||
coder->lz.coder = NULL;
|
coder->lz.coder = NULL;
|
||||||
coder->lz.code = NULL;
|
coder->lz.code = NULL;
|
||||||
coder->lz.end = NULL;
|
coder->lz.end = NULL;
|
||||||
|
coder->lz.options_update = NULL;
|
||||||
|
|
||||||
// mf.size is initialized to silence Valgrind
|
// mf.size is initialized to silence Valgrind
|
||||||
// when used on optimized binaries (GCC may reorder
|
// when used on optimized binaries (GCC may reorder
|
||||||
|
|
Loading…
Reference in New Issue