]> git.ipfire.org Git - thirdparty/xz.git/commit
xz: Ignore filter chains that are set but never used in --block-list.
authorJia Tan <jiat0218@gmail.com>
Sat, 17 Jun 2023 12:46:21 +0000 (20:46 +0800)
committerJia Tan <jiat0218@gmail.com>
Mon, 17 Jul 2023 15:34:55 +0000 (23:34 +0800)
commit8b9913a13daca2550d02dfdcdc9be15f55ca4d13
tree0a2dd6f6c956aa1b24a68e46199cc13b1aeb0eed
parent183819bfd9efac8c184d9bf123325719b7eee30f
xz: Ignore filter chains that are set but never used in --block-list.

If a filter chain is set but not used in --block-list, it introduced
unexpected behavior such as requiring an unneeded amount of memory to
compress, reducing the number of threads in multi-threaded encoding, and
printing an incorrect amount of memory needed to decompress.

This also renames filters_init_mask => filters_used_mask. A filter is
assumed to be used if it is specified in --filtersX until
coder_set_compression_settings() determines which filters are referenced
in --block-list.
src/xz/coder.c