[compiler-rt] [asan] Add experimental 'track_poison' flag (PR #133175)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 28 17:10:49 PDT 2025


================
@@ -623,6 +662,10 @@ void ErrorGeneric::Print() {
     PrintContainerOverflowHint();
   ReportErrorSummary(bug_descr, &stack);
   PrintShadowMemoryForAddress(addr);
+
+  // This is an experimental flag, hence we don't make a special handler.
+  if (flags()->track_poison > 0)
+    CheckPoisonRecords(addr);
----------------
vitalybuka wrote:

I see, it's inside CheckPoisonRecords
maybe consider moving check for flags()->track_poison there as well?

https://github.com/llvm/llvm-project/pull/133175


More information about the llvm-commits mailing list