]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: lzma_index_append: Add missing integer overflow check.
authorJia Tan <jiat0218@gmail.com>
Fri, 2 Sep 2022 12:18:55 +0000 (20:18 +0800)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 8 Sep 2022 12:19:19 +0000 (15:19 +0300)
commit18d7facd3802b55c287581405c4d49c98708c136
tree45b8579968c5054459312a9797fc1d459f535b80
parent9ac06cb5b85274d18f9f70d82cf2d8c9c1151bd4
liblzma: lzma_index_append: Add missing integer overflow check.

The documentation in src/liblzma/api/lzma/index.h suggests that
both the unpadded (compressed) size and the uncompressed size
are checked for overflow, but only the unpadded size was checked.
The uncompressed check is done first since that is more likely to
occur than the unpadded or index field size overflows.
src/liblzma/common/index.c