[compiler-rt] [asan] Add experimental 'track_poison' flag (PR #133175)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 28 16:54:09 PDT 2025
================
@@ -19,9 +19,25 @@
#include "asan_mapping.h"
#include "sanitizer_common/sanitizer_flags.h"
#include "sanitizer_common/sanitizer_platform.h"
+#include "sanitizer_common/sanitizer_ring_buffer.h"
namespace __asan {
+struct PoisonRecord {
+ unsigned int stack_id;
+ unsigned int thread_id;
+ uptr begin;
+ uptr end;
+};
+
+using PoisonRecordRingBuffer = RingBuffer<struct PoisonRecord>;
+
+// Set up data structures for track_poison.
+void InitializePoisonTracking();
+
+PoisonRecordRingBuffer* AcquirePoisonRecords();
----------------
vitalybuka wrote:
I mean proper API :)
void AddPoisonRecord(const PoisonRecord&);
const PoisonRecord& FindPoisonRecord(uptr begin, uptr end);
https://github.com/llvm/llvm-project/pull/133175
More information about the llvm-commits
mailing list