[HWASAN] Added empty WordIsPoisoned for LSAN support.
authorKirill Stoimenov <kstoimenov@google.com>
Tue, 10 Jan 2023 16:57:38 +0000 (16:57 +0000)
committerKirill Stoimenov <kstoimenov@google.com>
Tue, 10 Jan 2023 17:36:31 +0000 (17:36 +0000)
Currently it is just an empty implementation to allow the project to link.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D141147

compiler-rt/lib/hwasan/hwasan_poisoning.cpp

index 5aafdb1..a4e5935 100644 (file)
@@ -26,3 +26,11 @@ uptr TagMemory(uptr p, uptr size, tag_t tag) {
 }
 
 }  // namespace __hwasan
+
+// --- Implementation of LSan-specific functions --- {{{1
+namespace __lsan {
+bool WordIsPoisoned(uptr addr) {
+  // Fixme: implement actual tag checking.
+  return false;
+}
+}  // namespace __lsan