llvm-project/compiler-rt/lib/hwasan
Vitaly Buka c990d56d42 [HWASan] Use hwasan_memalign for aligned new.
Aligned new does not require size to be a multiple of alignment, so
memalign is the correct choice instead of aligned_alloc.

Fixes false reports for unaligned sizes.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D119161
2022-02-23 14:22:03 -08:00
..
scripts [HWASan] Try 'google' prefixed apex directories in symbolizer. 2021-12-03 10:35:03 -08:00
.clang-format Revert "sanitizers: increase .clang-format columns to 100" 2021-07-28 09:40:21 +02:00
CMakeLists.txt [HWASan] Add __hwasan_init to .preinit_array. 2022-02-03 13:07:58 -08:00
hwasan.cpp hwasan: fix up includes 2022-02-11 20:41:37 +01:00
hwasan.h [HWASan] Intercept setjmp/longjmp on x86_64. 2021-09-17 07:10:57 -07:00
hwasan.syms.extra
hwasan_allocation_functions.cpp [sanitizer] Switch dlsym hack to internal_allocator 2021-11-12 16:11:10 -08:00
hwasan_allocator.cpp [sanitizer] Support IsRssLimitExceeded in all sanitizers 2021-12-03 12:45:44 -08:00
hwasan_allocator.h [compiler-rt][hwasan] Add GetShadowOffset function 2021-06-15 10:46:11 -07:00
hwasan_checks.h [HWASan] Refactor in preparation for x86 aliasing mode. NFC 2021-03-23 13:25:10 -07:00
hwasan_dynamic_shadow.cpp [compiler-rt][hwasan][Fuchsia] Do not emit FindDynamicShadowStart for Fuchsia 2021-07-27 15:47:11 -07:00
hwasan_dynamic_shadow.h
hwasan_exceptions.cpp [hwasan] Replace _Unwind_Word with uintptr_t 2021-11-06 22:34:50 -07:00
hwasan_flags.h [HWASan] Use page aliasing on x86_64. 2021-03-25 07:04:14 -07:00
hwasan_flags.inc [NFC] Remove tab from the source 2021-02-26 19:40:24 -08:00
hwasan_fuchsia.cpp [HWASan] Ensure RNG is initialized in GenerateRandomTag 2021-11-09 07:01:55 -08:00
hwasan_globals.cpp [HWASan] Add sizeof(global) in report even if symbols missing. 2020-06-09 13:02:13 -07:00
hwasan_globals.h [HWASan] Add sizeof(global) in report even if symbols missing. 2020-06-09 13:02:13 -07:00
hwasan_ignorelist.txt [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
hwasan_interceptors.cpp [sanitizer] DEFINE_REAL_PTHREAD_FUNCTIONS for hwasan, lsan, msan 2021-12-02 10:24:04 -08:00
hwasan_interceptors_vfork.S [compiler-rt][aarch64] Add PAC-RET/BTI property to hwasan_interceptors_vfork.S 2021-04-12 17:17:33 -07:00
hwasan_interface_internal.h [compiler-rt][hwasan] Remove __sanitizer allocation functions from hwasan interface 2021-07-30 11:37:19 -07:00
hwasan_linux.cpp [HWASan] Ensure RNG is initialized in GenerateRandomTag 2021-11-09 07:01:55 -08:00
hwasan_malloc_bisect.h [compiler-rt] [hwasan] Replace INLINE with inline 2020-09-17 16:46:32 +02:00
hwasan_mapping.h [compiler-rt][hwasan] Refactor kAliasRegionStart usage 2021-07-12 16:33:05 -07:00
hwasan_memintrinsics.cpp [HWASan] Leave pointer tagged when calling memmove. 2022-01-28 06:15:38 -08:00
hwasan_new_delete.cpp [HWASan] Use hwasan_memalign for aligned new. 2022-02-23 14:22:03 -08:00
hwasan_poisoning.cpp [NFC][compiler-rt][hwasan] Move TagMemoryAligned into hwasan_linux.cpp 2021-07-09 11:02:44 -07:00
hwasan_poisoning.h
hwasan_preinit.cpp [HWASan] Add __hwasan_init to .preinit_array. 2022-02-03 13:07:58 -08:00
hwasan_report.cpp Enable -Wformat-pedantic and fix fallout. 2021-11-05 13:12:35 +01:00
hwasan_report.h
hwasan_setjmp_aarch64.S [HWASan] Use a single .weak binding in asm. 2021-09-22 09:35:09 -07:00
hwasan_setjmp_x86_64.S Reland [sanitizer] Support Intel CET 2021-10-08 10:22:39 -07:00
hwasan_tag_mismatch_aarch64.S [compiler-rt][aarch64] Add PAC-RET/BTI support to HWASAN. 2021-04-12 17:02:45 +02:00
hwasan_thread.cpp [HWASan] Ensure RNG is initialized in GenerateRandomTag 2021-11-09 07:01:55 -08:00
hwasan_thread.h [HWASan] Ensure RNG is initialized in GenerateRandomTag 2021-11-09 07:01:55 -08:00
hwasan_thread_list.cpp [NFC] test commit, fix namespace ending comment. 2021-06-17 11:18:36 +01:00
hwasan_thread_list.h [NFC][compiler-rt][hwasan] Re-use ring buffer size calculation 2021-06-29 11:57:33 -07:00
hwasan_type_test.cpp [HWASan] Intercept setjmp/longjmp on x86_64. 2021-09-17 07:10:57 -07:00