]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: In EROFS LZMA decoder, verify that comp_size matches at the end.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 17 Jan 2021 17:20:50 +0000 (19:20 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 17 Jan 2021 17:20:50 +0000 (19:20 +0200)
commitdb465419ae26ec7fb9b9472183911ff521620c77
tree097c2af1103adf4b8aa7e9937bd2c54e39f4a4d0
parent774cc0118ba2496581cb2621505a04bb6598cc75
liblzma: In EROFS LZMA decoder, verify that comp_size matches at the end.

When the uncompressed size is known to be exact, after decompressing
the stream exactly comp_size bytes of input must have been consumed.
This is a minor improvement to error detection.
src/liblzma/common/erofs_decoder.c