diff --git a/src/liblzma/check/crc_common.h b/src/liblzma/check/crc_common.h index 8842a9d1..cd1a10f9 100644 --- a/src/liblzma/check/crc_common.h +++ b/src/liblzma/check/crc_common.h @@ -38,15 +38,6 @@ #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 - // Keep this in sync with changes to crc32_arm64.h #if defined(_WIN32) || defined(HAVE_GETAUXVAL) \ || defined(HAVE_ELF_AUX_INFO) \ diff --git a/src/liblzma/check/crc_x86_clmul.h b/src/liblzma/check/crc_x86_clmul.h index 6baf83eb..67b34745 100644 --- a/src/liblzma/check/crc_x86_clmul.h +++ b/src/liblzma/check/crc_x86_clmul.h @@ -70,7 +70,6 @@ crc_attr_target -crc_attr_no_sanitize_address static lzma_always_inline void crc_simd_body(const uint8_t *buf, const size_t size, __m128i *v0, __m128i *v1, const __m128i vfold16, const __m128i initial_crc) @@ -243,7 +242,6 @@ calc_hi(uint64_t p, uint64_t a, int n) #ifdef BUILDING_CRC32_CLMUL crc_attr_target -crc_attr_no_sanitize_address static uint32_t crc32_arch_optimized(const uint8_t *buf, size_t size, uint32_t crc) { @@ -333,7 +331,6 @@ calc_hi(uint64_t poly, uint64_t a) #endif crc_attr_target -crc_attr_no_sanitize_address static uint64_t crc64_arch_optimized(const uint8_t *buf, size_t size, uint64_t crc) {