aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorLucas Perlind <perlindluca@gmail.com>2025-05-01 20:42:21 +1000
committerLucas Perlind <perlindluca@gmail.com>2025-05-01 20:42:21 +1000
commit5c73b4ef5829f0d722fdbb8ba8d84709563505a0 (patch)
treede05451132196b8adb43d44a57414f9e8ffa267d /src/entity.cpp
parentb04a83ce9fa0a3ed36ce5c774280e47f28246e0a (diff)
Add attribute @(no_sanitize_address)
The purposes of this attribute is to let procedures opt-out of being instrumented with asan. Typically an allocator that includes 'in-band' meta-data will be accessing poisoned values (such as tlsf). Making asan work with these allocators becomes very challenging so just being to ignore asan within specific allocator procedures makes it easier to reason and removes the need to temporarily poison and unpoison allocator data.
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index b2148aa7b..9946a3a5f 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -258,6 +258,7 @@ struct Entity {
bool is_memcpy_like : 1;
bool uses_branch_location : 1;
bool is_anonymous : 1;
+ bool no_sanitize_address : 1;
} Procedure;
struct {
Array<Entity *> entities;