[compiler-rt] [llvm] [ASan] Do not instrument catch block parameters on Windows (PR #159618)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 23 14:06:21 PDT 2025


================
@@ -2986,6 +2987,24 @@ void AddressSanitizer::markEscapedLocalAllocas(Function &F) {
     }
   }
 }
+// Mitigation for https://github.com/google/sanitizers/issues/749
+// We don't instrument Windows catch-block parameters to avoid
+// interfering with exception handling assumptions.
+void AddressSanitizer::markCatchParametersAsUninteresting(Function &F) {
----------------
antoniofrighetto wrote:

Arguably, having all checks grouped in isAllocaInteresting may look slightly more elegant, but agree this is fine too for approval.

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


More information about the llvm-commits mailing list