summaryrefslogtreecommitdiff
path: root/lib/asan/asan_descriptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asan/asan_descriptions.h')
-rw-r--r--lib/asan/asan_descriptions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/asan/asan_descriptions.h b/lib/asan/asan_descriptions.h
index cd278add8..1a1b01cf2 100644
--- a/lib/asan/asan_descriptions.h
+++ b/lib/asan/asan_descriptions.h
@@ -146,6 +146,10 @@ struct GlobalAddressDescription {
u8 size;
void Print(const char *bug_type = "") const;
+
+ // Returns true when this descriptions points inside the same global variable
+ // as other. Descriptions can have different address within the variable
+ bool PointsInsideTheSameVariable(const GlobalAddressDescription &other) const;
};
bool GetGlobalAddressInformation(uptr addr, uptr access_size,