diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-22 11:20:17 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-24 10:57:03 +0200 |
commit | 5fecba6022cbbeed8103b49d79b2fb36086be72d (patch) | |
tree | 4e55479acb312b1d202846c61cc619ece21b5b36 /windows/vs2013 | |
parent | liblzma: Fix two Doxygen commands in the API headers. (diff) | |
download | xz-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 'windows/vs2013')
0 files changed, 0 insertions, 0 deletions