Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Include/pyport.h
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ extern "C" {
# define _Py_MSAN_UNPOISON(PTR, SIZE) (__msan_unpoison(PTR, SIZE))
# endif
# endif
# if __has_feature(address_sanitizer)
# if __has_feature(address_sanitizer) || __has_feature(hwaddress_sanitizer)
# if !defined(_Py_ADDRESS_SANITIZER)
# define _Py_ADDRESS_SANITIZER
# define _Py_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
Expand All @@ -569,7 +569,7 @@ extern "C" {
# endif
# endif
#elif defined(__GNUC__)
# if defined(__SANITIZE_ADDRESS__)
# if defined(__SANITIZE_ADDRESS__) || defined(__SANITIZE_HWADDRESS__)
# define _Py_ADDRESS_SANITIZER
# define _Py_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
# endif
Expand Down
1 change: 1 addition & 0 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def check_sanitizer(*, address=False, memory=False, ub=False, thread=False,
)
address_sanitizer = (
'-fsanitize=address' in cflags or
'-fsanitize=hwaddress' in cflags or
'--with-address-sanitizer' in config_args
)
ub_sanitizer = (
Expand Down
Loading