5 Commits

Author SHA1 Message Date
Jin Xin Ng
3ab36712da
[hwasan] RunMallocHooks with orig_size
This matches behaviour of asan. sanitizer_common/TestCases/malloc_hook.cpp
should've caught this- but hwasan was on XFAIL.

Differential Revision: https://reviews.llvm.org/D151580
2023-05-31 18:19:30 +00:00
Jin Xin Ng
90418dc95e
[lsan] Invoke hooks on realloc
Previously lsan would not invoke hooks on reallocations.
An accompanying regression test is included in sanitizer_common.

This change also moves hook calls to a location where subsequent
calls (via an external caller) to __sanitizer_get_allocated_size
via hooks will return a valid size.

This allows a faster version of __sanitizer_get_allocated_size
to be implemented, which can skip checks.

Test to ensure RunFreeHooks' call order will come with
__sanitizer_get_allocated_size_fast

Differential Revision: https://reviews.llvm.org/D151175
2023-05-23 16:42:07 +00:00
Vitaly Buka
69e01fa1e9 [test][HWASAN] Add XFAILs for missing hwasan features
Reviewed By: thurston

Differential Revision: https://reviews.llvm.org/D149271
2023-04-26 12:55:21 -07:00
Paul Robinson
975fa72506 [sanitizer-common] Convert tests to check 'target=...'
Part of the project to eliminate special handling for triples in lit
expressions.
2022-12-19 11:01:09 -08:00
Nico Weber
74989aff53 compiler-rt: Rename cc files below test/sanitizer_common to cpp
See r367803 and similar other changes.

llvm-svn: 367863
2019-08-05 13:57:03 +00:00