aboutsummaryrefslogtreecommitdiff
path: root/src/lzmainfo/lzmainfo_w32res.rc
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-24 10:57:03 +0200
commit5fecba6022cbbeed8103b49d79b2fb36086be72d (patch)
tree4e55479acb312b1d202846c61cc619ece21b5b36 /src/lzmainfo/lzmainfo_w32res.rc
parentliblzma: Fix two Doxygen commands in the API headers. (diff)
downloadxz-5fecba6022cbbeed8103b49d79b2fb36086be72d.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/lzmainfo/lzmainfo_w32res.rc')
0 files changed, 0 insertions, 0 deletions