aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2025-06-05 14:36:55 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2025-06-05 16:06:40 -0400
commit9c5640886d95cba73b10a59a43692c9bae4037fb (patch)
treecd4f3894b7e870bcf6a11529873db4f31bca7e6c /src/checker.cpp
parent97fd228f01fd406bbbe2a8321118f641c5d0d7e9 (diff)
Add `@(no_sanitize_memory)` proc attribute with MSan 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 9bc02cd87..4a5381014 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;
}