aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-11-22 11:20:17 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-11-22 11:23:23 +0200
commitc392bf8ccba857baaf50399c4b460119befacd54 (patch)
tree555e18784810bc8a412a05ee74bbe37e3c427a91 /src/common
parentliblzma: Fix two Doxygen commands in the API headers. (diff)
downloadxz-c392bf8ccba857baaf50399c4b460119befacd54.tar.xz
liblzma: Fix infinite loop in LZMA encoder init with dict_size >= 2 GiB.
The encoder doesn't support dictionary sizes larger than 1536 MiB. This is validated, for example, when calculating the memory usage via lzma_raw_encoder_memusage(). It is also enforced by the LZ part of the encoder initialization. However, LZMA encoder with LZMA_MODE_NORMAL did an unsafe calculation with dict_size before such validation and that results in an infinite loop if dict_size was 2 << 30 or greater.
Diffstat (limited to 'src/common')
0 files changed, 0 insertions, 0 deletions