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-22 11:23:23 +0200 |
commit | c392bf8ccba857baaf50399c4b460119befacd54 (patch) | |
tree | 555e18784810bc8a412a05ee74bbe37e3c427a91 /windows/build.bash | |
parent | liblzma: Fix two Doxygen commands in the API headers. (diff) | |
download | xz-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 'windows/build.bash')
0 files changed, 0 insertions, 0 deletions