1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

liblzma: #define crc_attr_no_sanitize_address in crc_common.h.

This commit is contained in:
Lasse Collin 2023-10-20 21:53:35 +03:00
parent 93d144f093
commit 9523c1300d

View file

@ -39,6 +39,16 @@
#endif #endif
// CRC CLMUL code needs this because accessing input buffers that aren't
// aligned to the vector size will inherently trip the address sanitizer.
#if lzma_has_attribute(__no_sanitize_address__)
# define crc_attr_no_sanitize_address \
__attribute__((__no_sanitize_address__))
#else
# define crc_attr_no_sanitize_address
#endif
// The inline keyword is only a suggestion to the compiler to substitute the // The inline keyword is only a suggestion to the compiler to substitute the
// body of the function into the places where it is called. If a function // body of the function into the places where it is called. If a function
// is large and called multiple times then compiler may choose to ignore the // is large and called multiple times then compiler may choose to ignore the