xz-analysis-mirror/src/liblzma/common
Lasse Collin 5e2450c75c liblzma: Include cached memory in reported memusage in threaded decoder.
This affects lzma_memusage() and lzma_memlimit_set() when used
with the threaded decompressor. Now all allocations are reported
by lzma_memusage() (so it's not misleading) and lzma_memlimit_set()
cannot lower the limit below that value.

The alternative would have been to allow lowering the limit if
doing so is possible by freeing the cached memory but since
the primary use case of lzma_memlimit_set() is to increase
memlimit after LZMA_MEMLIMIT_ERROR this simple approach
was selected.

The cached memory was always included when enforcing
the memory usage limit while decoding.

Thanks to Jia Tan.
2022-11-07 17:22:04 +02:00
..
Makefile.inc liblzma: Fix a compilation issue when encoders are disabled. 2022-10-05 16:11:33 +03:00
alone_decoder.c liblzma: Add optional autodetection of LZMA end marker. 2022-07-13 22:24:07 +03:00
alone_decoder.h liblzma: Be less picky in lzma_alone_decoder(). 2013-03-23 22:25:15 +02:00
alone_encoder.c Rename unaligned_read32ne to read32ne, and similarly for the others. 2019-12-31 00:47:49 +02:00
auto_decoder.c liblzma: Fix lzma_memlimit_set(strm, 0). 2017-03-30 19:51:14 +03:00
block_buffer_decoder.c liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
block_buffer_encoder.c liblzma: Vaccinate against an ill patch from RHEL/CentOS 7. 2022-09-08 15:01:29 +03:00
block_buffer_encoder.h liblzma: Add lzma_block_uncomp_encode(). 2013-03-23 19:17:33 +02:00
block_decoder.c liblzma: Make Block decoder catch certain types of errors better. 2022-02-20 20:36:27 +02:00
block_decoder.h liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
block_encoder.c liblzma: Avoid multiple definitions of lzma_coder structures. 2016-11-21 20:24:50 +02:00
block_encoder.h liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
block_header_decoder.c Rename unaligned_read32ne to read32ne, and similarly for the others. 2019-12-31 00:47:49 +02:00
block_header_encoder.c Rename unaligned_read32ne to read32ne, and similarly for the others. 2019-12-31 00:47:49 +02:00
block_util.c liblzma: Fix comments. 2019-06-03 20:41:54 +03:00
common.c liblzma: Vaccinate against an ill patch from RHEL/CentOS 7. 2022-09-08 15:01:29 +03:00
common.h liblzma: Vaccinate against an ill patch from RHEL/CentOS 7. 2022-09-08 15:01:29 +03:00
easy_buffer_encoder.c liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
easy_decoder_memusage.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
easy_encoder.c liblzma: Make lzma_stream_encoder_init() static (second try). 2011-04-11 09:27:57 +03:00
easy_encoder_memusage.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
easy_preset.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
easy_preset.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
file_info.c spelling 2019-05-11 20:52:37 +03:00
filter_buffer_decoder.c liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
filter_buffer_encoder.c liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
filter_common.c liblzma: Add experimental ARM64 BCJ filter with a temporary Filter ID. 2022-09-19 20:23:46 +03:00
filter_common.h liblzma: Fix comments. 2019-06-03 20:41:54 +03:00
filter_decoder.c liblzma: Add experimental ARM64 BCJ filter with a temporary Filter ID. 2022-09-19 20:23:46 +03:00
filter_decoder.h liblzma: Fix comments. 2019-06-03 20:41:54 +03:00
filter_encoder.c liblzma: Add experimental ARM64 BCJ filter with a temporary Filter ID. 2022-09-19 20:23:46 +03:00
filter_encoder.h liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
filter_flags_decoder.c liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
filter_flags_encoder.c liblzma: Fix comments. 2019-06-03 20:41:54 +03:00
hardware_cputhreads.c liblzma: Vaccinate against an ill patch from RHEL/CentOS 7. 2022-09-08 15:01:29 +03:00
hardware_physmem.c spelling 2019-05-11 20:52:37 +03:00
index.c liblzma: Add dest and src NULL checks to lzma_index_cat. 2022-09-28 15:48:03 +03:00
index.h Revised the Index handling code. 2009-12-31 22:45:53 +02:00
index_decoder.c liblzma: Don't verify header CRC32s if building for fuzz testing. 2018-10-26 22:49:10 +03:00
index_decoder.h liblzma: Make lzma_index_decoder_init() visible to other liblzma funcs. 2017-03-30 20:03:05 +03:00
index_encoder.c liblzma: Avoid multiple definitions of lzma_coder structures. 2016-11-21 20:24:50 +02:00
index_encoder.h liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
index_hash.c liblzma: Index hash: Change return value type of hash_append() to void. 2022-03-06 15:18:58 +02:00
memcmplen.h tuklib_integer: Add 64-bit endianness-converting reads and writes. 2022-10-05 14:26:00 +03:00
microlzma_decoder.c liblzma: Add optional autodetection of LZMA end marker. 2022-07-13 22:24:07 +03:00
microlzma_encoder.c liblzma: Rename EROFS LZMA to MicroLZMA. 2021-09-05 20:38:12 +03:00
outqueue.c liblzma: Add new output queue (lzma_outq) features. 2022-03-06 16:41:19 +02:00
outqueue.h liblzma: Add new output queue (lzma_outq) features. 2022-03-06 16:41:19 +02:00
stream_buffer_decoder.c liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
stream_buffer_encoder.c liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
stream_decoder.c liblzma: Stream decoder: Fix restarting after LZMA_MEMLIMIT_ERROR. 2022-09-28 11:05:15 +03:00
stream_decoder.h liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
stream_decoder_mt.c liblzma: Include cached memory in reported memusage in threaded decoder. 2022-11-07 17:22:04 +02:00
stream_encoder.c liblzma: Avoid multiple definitions of lzma_coder structures. 2016-11-21 20:24:50 +02:00
stream_encoder_mt.c liblzma: Vaccinate against an ill patch from RHEL/CentOS 7. 2022-09-08 15:01:29 +03:00
stream_flags_common.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
stream_flags_common.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
stream_flags_decoder.c Rename unaligned_read32ne to read32ne, and similarly for the others. 2019-12-31 00:47:49 +02:00
stream_flags_encoder.c Rename unaligned_read32ne to read32ne, and similarly for the others. 2019-12-31 00:47:49 +02:00
vli_decoder.c spelling 2019-05-11 20:52:37 +03:00
vli_encoder.c Fix incorrect use of "restrict". 2009-09-15 21:07:23 +03:00
vli_size.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00