[compiler-rt] [TySan] Fix false positives with derived classes (PR #126260)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 24 08:38:35 PDT 2025


================
@@ -0,0 +1,21 @@
+// RUN: %clangxx_tysan %s -o %t && %run %t 2>&1 | FileCheck --implicit-check-not ERROR %s
+
+#include <stdio.h>
+
+class Base {
+public:
+  void *first;
+  void *second;
+  void *third;
----------------
gbMattN wrote:

Its covered in basic.c when we partially access a short

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


More information about the llvm-commits mailing list