Fix ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS for MSAN
There's no case for when RUBY_MSAN_ENABLED, so the macro ends up doing nothing when it should instead have __attribute__((__no_sanitize__("memory"))).
This commit is contained in:
parent
5898abd084
commit
3c91a1e5fd
Notes:
git
2024-12-04 19:29:49 +00:00
@ -39,6 +39,9 @@
|
||||
#elif defined(RUBY_ASAN_ENABLED)
|
||||
# define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(x) \
|
||||
__attribute__((__no_sanitize__("address"), __noinline__)) x
|
||||
#elif defined(RUBY_MSAN_ENABLED)
|
||||
# define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(x) \
|
||||
__attribute__((__no_sanitize__("memory"), __noinline__)) x
|
||||
#elif defined(NO_SANITIZE_ADDRESS)
|
||||
# define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(x) \
|
||||
NO_SANITIZE_ADDRESS(NOINLINE(x))
|
||||
|
Loading…
x
Reference in New Issue
Block a user