xz/src/liblzma
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
..
api Build: Add --enable-doxygen to generate and install API docs 2024-04-30 17:09:08 +03:00
check tuklib_integer: Rename bswapXX to byteswapXX 2024-04-25 14:00:57 +03:00
common liblzma: Fix incorrect function type error from sanitizer 2024-04-30 22:22:45 +03:00
delta liblzma: Minor comment edits. 2024-03-15 18:03:47 +02:00
lz liblzma: Clean up white space 2024-04-22 20:31:25 +03:00
lzma liblzma: Silence warnings in --enable-small build. 2024-02-14 19:21:45 +02:00
rangecoder liblzma: Fix building with NVHPC (NVIDIA HPC SDK). 2024-03-15 17:30:50 +02:00
simple liblzma: Silence a warning from Coverity static analysis 2024-04-20 12:09:37 +03:00
Makefile.am Bump version and soname for 5.7.0alpha. 2024-02-24 16:30:06 +08:00
liblzma.pc.in Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
liblzma_generic.map Bump version and soname for 5.7.0alpha. 2024-02-24 16:30:06 +08:00
liblzma_linux.map Bump version and soname for 5.7.0alpha. 2024-02-24 16:30:06 +08:00
liblzma_w32res.rc Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
validate_map.sh liblzma: Fix validate_map.sh. 2024-02-14 19:46:11 +02:00