xz/src/liblzma/common
Lasse Collin 278563ef8f liblzma: Fix incorrect function type error from sanitizer
Clang 17 with -fsanitize=address,undefined:

    src/liblzma/common/filter_common.c:366:8: runtime error:
        call to function encoder_find through pointer to incorrect
        function type 'const lzma_filter_coder *(*)(unsigned long)'
    src/liblzma/common/filter_encoder.c:187: note:
        encoder_find defined here

Use a wrapper function to get the correct type neatly.
This reduces the number of casts needed too.

This issue could be a problem with control flow integrity (CFI)
methods that check the function type on indirect function calls.

Fixes: 3b34851de1
2024-04-30 22:22:45 +03:00
..
Makefile.inc Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
alone_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
alone_decoder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
alone_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
auto_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
block_buffer_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
block_buffer_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
block_buffer_encoder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
block_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
block_decoder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
block_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
block_encoder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
block_header_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
block_header_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
block_util.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
common.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
common.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
easy_buffer_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
easy_decoder_memusage.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
easy_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
easy_encoder_memusage.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
easy_preset.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
easy_preset.h liblzma: easy_preset: add header guard 2024-04-25 14:04:24 +03:00
file_info.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
filter_buffer_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
filter_buffer_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
filter_common.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
filter_common.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
filter_decoder.c liblzma: Fix incorrect function type error from sanitizer 2024-04-30 22:22:45 +03:00
filter_decoder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
filter_encoder.c liblzma: Fix incorrect function type error from sanitizer 2024-04-30 22:22:45 +03:00
filter_encoder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
filter_flags_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
filter_flags_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
hardware_cputhreads.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
hardware_physmem.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
index.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
index.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
index_decoder.c liblzma: index_decoder: Fix missing initializations on LZMA_PROG_ERROR 2024-04-27 14:33:38 +03:00
index_decoder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
index_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
index_encoder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
index_hash.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
lzip_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
lzip_decoder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
memcmplen.h liblzma: memcmplen.h: Add a comment why subtraction is used. 2024-03-22 17:46:30 +02:00
microlzma_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
microlzma_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
outqueue.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
outqueue.h liblzma: outqueue: add header guard 2024-04-25 14:04:24 +03:00
stream_buffer_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
stream_buffer_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
stream_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
stream_decoder.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
stream_decoder_mt.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
stream_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
stream_encoder_mt.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
stream_flags_common.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
stream_flags_common.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
stream_flags_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
stream_flags_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
string_conversion.c liblzma: lzma_str_to_filters: Set *error_pos on all errors 2024-04-22 22:03:04 +03:00
vli_decoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
vli_encoder.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
vli_size.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00