]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Add NULL checks to LZMA and LZMA2 properties encoders.
authorjiat75 <jiat0218@gmail.com>
Fri, 28 Jan 2022 12:47:55 +0000 (20:47 +0800)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 6 Feb 2022 22:20:01 +0000 (00:20 +0200)
commit6468f7e41a8e9c611e4ba8d34e2175c5dacdbeb4
tree19d36e4b3824a5c831de500c7a4b1e91d892f88b
parent2523c30705f49eabd27b854aa656ae87cc224808
liblzma: Add NULL checks to LZMA and LZMA2 properties encoders.

Previously lzma_lzma_props_encode() and lzma_lzma2_props_encode()
assumed that the options pointers must be non-NULL because the
with these filters the API says it must never be NULL. It is
good to do these checks anyway.
src/liblzma/lzma/lzma2_encoder.c
src/liblzma/lzma/lzma_encoder.c