diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-05-01 12:16:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-01 12:16:10 +0100 |
| commit | 777c33a9a1b570a15b45adc3a7f0013946ffe6a5 (patch) | |
| tree | d3f69891bfafcbf78a3ff287e32504611d880788 /src/checker.cpp | |
| parent | 2d8ae2d23c8cf7c9b76698e80aaf6ffd139254ac (diff) | |
| parent | 5c73b4ef5829f0d722fdbb8ba8d84709563505a0 (diff) | |
Merge pull request #5102 from Lperlind/attribute-no-sanitize-address
Add attribute @(no_sanitize_address)
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 038c5aa1a..5e1517875 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -3711,6 +3711,12 @@ gb_internal DECL_ATTRIBUTE_PROC(proc_decl_attribute) { } ac->instrumentation_exit = true; return true; + } else if (name == "no_sanitize_address") { + if (value != nullptr) { + error(value, "'%.*s' expects no parameter", LIT(name)); + } + ac->no_sanitize_address = true; + return true; } return false; } |