[compiler-rt] [HWASAN] Add test to detected use after free in memcmp (PR #67204)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 16:07:14 PDT 2023


================
@@ -0,0 +1,15 @@
+// RUN: %clangxx -O0 %s -o %t && %run %t
+// XFAIL: *
----------------
fmayer wrote:

I don't think this is correct. You want ` && not %run %t` above. Probably add some FileCheck to assert it actually fails with a HWASan error, not a segfault.

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


More information about the llvm-commits mailing list