5 Commits

Author SHA1 Message Date
Kirill Stoimenov
ddf4a9ce63
[test][HWASAN] Force interceptors tests for memcmp and bcmp call interceptor (#71215) 2023-11-03 13:55:52 -07:00
Vitaly Buka
3e5187ea83 Revert "[HWASAN] Enable memcpy, memmove and memset interceptors (#70387)"
Breaks build bots, details in #70387.

This reverts commit 91cdd7d615da38a1f025646f526c2fce265a37e2.
2023-10-30 21:09:21 -07:00
Kirill Stoimenov
91cdd7d615
[HWASAN] Enable memcpy, memmove and memset interceptors (#70387) 2023-10-30 15:01:21 -07:00
Kirill Stoimenov
844c731f2d
[HWASAN] Mark built-ins as not built-ins to prevent optimizations (#68936)
The other 3 sanitizers (ASAN, TSAN and MSAN) all use
maybeMarkSanitizerLibraryCallNoBuiltin to make disable optimizations
which inline functions like memcmp for example. The lack of this
optimization was allowing ExpandMemCmpPass to convert a memcmp call to
inlined assembly and cause a false negative in HWASAN.
2023-10-13 11:43:29 -07:00
Kirill Stoimenov
46c1671620
[HWASAN]Implement memcmp interceptor in HWASAN (#67204)
The plan is to fix memcmp interceptor in HWASAN and remove the
unsupported statement at that time.

---------

Co-authored-by: Vitaly Buka <vitalybuka@gmail.com>
2023-09-29 16:14:48 -07:00