liblzma: Add dest and src NULL checks to lzma_index_cat.
commit8cc9874a7974cd575aee44f218836f7acdbeb0ed
authorJia Tan <jiat0218@gmail.com>
Wed, 21 Sep 2022 08:15:50 +0000 (21 16:15 +0800)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 28 Sep 2022 12:48:03 +0000 (28 15:48 +0300)
treebc9ec8f2a8f225bd21496ef2f4fd2ce6e38ea661
parentafd5a8bf5374eba82804a999e1ea7af680784086
liblzma: Add dest and src NULL checks to lzma_index_cat.

The documentation states LZMA_PROG_ERROR can be returned from
lzma_index_cat. Previously, lzma_index_cat could not return
LZMA_PROG_ERROR. Now, the validation is similar to
lzma_index_append, which does a NULL check on the index
parameter.
src/liblzma/common/index.c