xz/src
Lasse Collin bfe9be7a46 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
(cherry picked from commit 278563ef8f)
2024-05-23 00:13:43 +03:00
..
common tuklib_integer: Rename bswapXX to byteswapXX 2024-05-22 14:32:36 +03:00
liblzma liblzma: Fix incorrect function type error from sanitizer 2024-05-23 00:13:43 +03:00
lzmainfo Build: Install translated lzmainfo man pages. 2024-02-17 16:23:14 +02:00
scripts xzmore: Fix typo in xzmore.1. 2024-02-21 00:30:43 +08:00
xz xz: Avoid arithmetic on a null pointer 2024-05-23 00:13:43 +03:00
xzdec Update website URLs back to tukaani.org. 2024-05-22 14:12:39 +03:00
Makefile.am Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00