aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-06-09 12:46:22 +0100
committerGitHub <noreply@github.com>2025-06-09 12:46:22 +0100
commit87247b8bb787e53f7ca26fba1a11739844bf442d (patch)
tree2415eb49e48ab985237ca61211e42cf1a668f2a6 /src/checker.cpp
parentb8ac7776494eb7c55828b11fa5a431ef2eb44197 (diff)
parentf8228a91d1823a2f586dcca5f5ff9f57d17dc92f (diff)
Merge pull request #5286 from Feoramund/no-san-mem
Add `@(no_sanitize_memory)` with additions to `base:sanitizer`
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 67dee9963..4ebabe004 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -3776,6 +3776,12 @@ gb_internal DECL_ATTRIBUTE_PROC(proc_decl_attribute) {
}
ac->no_sanitize_address = true;
return true;
+ } else if (name == "no_sanitize_memory") {
+ if (value != nullptr) {
+ error(value, "'%.*s' expects no parameter", LIT(name));
+ }
+ ac->no_sanitize_memory = true;
+ return true;
}
return false;
}