llvm-project/compiler-rt/lib/hwasan
Peter Collingbourne fdef020d80 hwasan: Ignore loads and stores of size 0.
Now that memory intrinsics are instrumented, it's more likely that
CheckAddressSized will be called with size 0. (It was possible before
with IR like:

  %val = load [0 x i8], [0 x i8]* %ptr

but I don't think clang will generate IR like that and the optimizer
would normally remove it by the time it got anywhere near our pass
anyway). The right thing to do in both cases is to disable the
addressing checks (since the underlying memory intrinsic is a no-op),
so that's what we do.

Differential Revision: https://reviews.llvm.org/D56465

llvm-svn: 350683
2019-01-09 00:44:13 +00:00
..
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
CMakeLists.txt [HWASAN] Add support for memory intrinsics 2018-12-20 09:10:03 +00:00
hwasan.cc [HWASAN] Add support for memory intrinsics 2018-12-20 09:10:03 +00:00
hwasan.h hwasan: Use system allocator to realloc and free untagged pointers in interceptor mode. 2019-01-04 19:21:51 +00:00
hwasan.syms.extra
hwasan_allocator.cc hwasan: Use system allocator to realloc and free untagged pointers in interceptor mode. 2019-01-04 19:21:51 +00:00
hwasan_allocator.h hwasan: Use system allocator to realloc and free untagged pointers in interceptor mode. 2019-01-04 19:21:51 +00:00
hwasan_blacklist.txt
hwasan_checks.h hwasan: Ignore loads and stores of size 0. 2019-01-09 00:44:13 +00:00
hwasan_dynamic_shadow.cc [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00
hwasan_dynamic_shadow.h [HWASan] Add files missing in r330624 2018-04-23 19:05:12 +00:00
hwasan_flags.h [hwasan] formatting change, NFC 2018-08-29 22:23:34 +00:00
hwasan_flags.inc [hwasan] implement free_checks_tail_magic=1 2018-11-17 00:25:17 +00:00
hwasan_interceptors.cc Bring back the pthread_create interceptor, but only on non-aarch64. 2019-01-04 23:24:02 +00:00
hwasan_interface_internal.h [HWASAN] Add support for memory intrinsics 2018-12-20 09:10:03 +00:00
hwasan_linux.cc hwasan: Implement lazy thread initialization for the interceptor ABI. 2019-01-04 19:27:04 +00:00
hwasan_mapping.h [hwasan] remove even more stale code 2018-08-29 22:54:52 +00:00
hwasan_memintrinsics.cc [HWASAN] Add support for memory intrinsics 2018-12-20 09:10:03 +00:00
hwasan_new_delete.cc hwasan: Use system allocator to realloc and free untagged pointers in interceptor mode. 2019-01-04 19:21:51 +00:00
hwasan_poisoning.cc [hwasan] get rid of some macros, remove the fixed shadow mapping 2018-08-29 22:42:16 +00:00
hwasan_poisoning.h [hwasan] formatting change, NFC 2018-08-29 22:23:34 +00:00
hwasan_report.cc hwasan: Fix typo: Previosly -> Previously. 2018-12-15 07:06:24 +00:00
hwasan_report.h [hwasan] implement free_checks_tail_magic=1 2018-11-17 00:25:17 +00:00
hwasan_thread.cc [asan] Support running without /proc 2019-01-08 01:07:34 +00:00
hwasan_thread.h [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00
hwasan_thread_list.cc [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00
hwasan_thread_list.h [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00