diff options
author | David Kalnischkies <david@kalnischkies.de> | 2020-12-02 15:46:34 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2021-02-02 19:56:45 +0100 |
commit | b4b5e9bf97970e0efc4a994de96066a92e3a9b8f (patch) | |
tree | 920cdd37c7b52f8d9f7e818dd76a9eaf558e05b5 /CMakeLists.txt | |
parent | ce2fbbbcd5d81b4cfd60d2a277cbd9ee63d2c1e7 (diff) |
Use 500 MB memory limit for xz/lzma decoding
The buffers we feed in and read out are usually a couple kilobytes big
so allowing lzma to use an unlimited amount of memory is easy & okay,
but not needed and confuses memory checkers as it will cause lzma to
malloc a huge chunk of memory (which it will never use).
So lets just use a "big enough" value instead.
In exchange we simplify the decoder calling as we were already using the
auto-variant for xz, so we can just avoid the if-else and let liblzma
decide what it decodes.
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions