FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-156049: Allow building with hardware address sanitizer by AnnaAr321 · Pull Request #156050 · python/cpython · GitHub

Repository navigation

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .h  (1) .py  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions Include/pyport.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL