xz/src/liblzma/common
Lasse Collin 6364cbc63e liblzma: lzma_str_to_filters: Set *error_pos on all errors
The API docs clearly say that if error_pos isn't NULL then *error
is always set on any error. However, it wasn't touched if str == NULL
or filters == NULL or unsupported flags were specified.

Fixes: cedeeca2ea
(cherry picked from commit 70d12dd069)
2024-05-22 00:12:07 +03:00
..
Makefile.inc liblzma: Add lzma_str_to_filters, _from_filters, and _list_filters. 2022-11-28 21:54:24 +02:00
alone_decoder.c liblzma: Use LZMA1EXT feature in lzma_alone_decoder(). 2022-11-28 10:28:20 +02:00
alone_decoder.h liblzma: Be less picky in lzma_alone_decoder(). 2013-03-23 22:25:15 +02:00
alone_encoder.c liblzma: Cleans up old commented out code. 2023-04-25 20:19:10 +08:00
auto_decoder.c liblzma: Add .lz support to lzma_auto_decoder(). 2022-11-09 14:25:26 +02: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 Docs: Fix typos found by codespell 2023-08-01 18:44:02 +03:00
block_buffer_encoder.h liblzma: Add lzma_block_uncomp_encode(). 2013-03-23 19:17:33 +02:00
block_decoder.c liblzma: Avoid null pointer + 0 (undefined behavior in C). 2023-03-07 23:24:15 +08: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 null pointer + 0 (undefined behavior in C). 2023-03-07 23:24:15 +08: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 liblzma: Check for unexpected NULL pointers in block_header_decode(). 2022-12-08 17:30:09 +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: Move a few __attribute__ uses in function declarations. 2023-10-31 01:03:25 +08:00
common.h liblzma: #define lzma_always_inline in common.h. 2023-10-31 18:44:59 +08: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 Docs: Fix typos found by codespell 2023-08-01 18:44:02 +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: Make lzma_validate_chain() available outside filter_common.c. 2022-11-28 21:02:19 +02:00
filter_common.h liblzma: Make lzma_validate_chain() available outside filter_common.c. 2022-11-28 21:02:19 +02:00
filter_decoder.c liblzma: Add LZMA_FILTER_LZMA1EXT to support LZMA1 without end marker. 2022-11-27 23:16:21 +02:00
filter_decoder.h liblzma: Fix comments. 2019-06-03 20:41:54 +03:00
filter_encoder.c liblzma: Make parameter names in function definition match declaration. 2023-12-22 20:02:06 +08: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 overflow check for Unpadded size in lzma_index_append(). 2023-10-26 06:22:24 +08:00
index.h liblzma: Update assert in vli_ceil4(). 2023-10-26 06:22:24 +08:00
index_decoder.c liblzma: Avoid null pointer + 0 (undefined behavior in C). 2023-03-07 23:24:15 +08:00
index_decoder.h liblzma: Remove common.h include from common/index.h. 2023-01-09 16:37:19 +02:00
index_encoder.c liblzma: Avoid null pointer + 0 (undefined behavior in C). 2023-03-07 23:24:15 +08: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: Avoid null pointer + 0 (undefined behavior in C). 2023-03-07 23:24:15 +08:00
lzip_decoder.c Docs: Fix typos found by codespell 2023-08-01 18:44:02 +03:00
lzip_decoder.h liblzma: Add .lz support to lzma_auto_decoder(). 2022-11-09 14:25:26 +02:00
memcmplen.h liblzma: Use lzma_always_inline in memcmplen.h. 2023-10-31 18:44:59 +08:00
microlzma_decoder.c liblzma: Use LZMA1EXT feature in lzma_microlzma_decoder(). 2022-11-28 10:48:53 +02:00
microlzma_encoder.c liblzma: Fix lzma_microlzma_encoder() return value. 2022-12-20 22:23:59 +08: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: Remove common.h include from common/index.h. 2023-01-09 16:37:19 +02:00
stream_decoder.c liblzma: Replaced hardcoded 0x0 index indicator byte with macro 2023-01-09 16:34:32 +02: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 Docs: Fix typos found by codespell 2023-08-01 18:44:02 +03:00
stream_encoder.c liblzma: Refactor to use lzma_filters_free(). 2022-11-24 01:32:16 +02:00
stream_encoder_mt.c liblzma: Prevent uninitialzed warning in mt stream encoder. 2023-07-18 13:20:16 +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 liblzma: Use lzma_attr_visibility_hidden on private extern declarations. 2023-10-31 18:44:59 +08: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
string_conversion.c liblzma: lzma_str_to_filters: Set *error_pos on all errors 2024-05-22 00:12:07 +03: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