[compiler-rt] [HWASAN] Add test to detected use after free in memcmp (PR #67204)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 16:16:51 PDT 2023
================
@@ -0,0 +1,15 @@
+// RUN: %clangxx -O0 %s -o %t && %run %t
+// XFAIL: *
----------------
vitalybuka wrote:
I guess for interceptors like these optimal testing is:
1. sanitizer_common - basic positive test check that it links and DO NOT CRASH, maybe basic functionality test
2. in each sanitizer - report test
AddressSanitizer-i386-linux :: TestCases/Posix/bcmp_test.cpp
AddressSanitizer-i386-linux :: TestCases/memcmp_strict_test.cpp
AddressSanitizer-i386-linux :: TestCases/memcmp_test.cpp
MemorySanitizer-X86_64 :: memcmp_test.cpp
So I suggest to adopt for HWASAN:
AddressSanitizer-i386-linux :: TestCases/Posix/bcmp_test.cpp
AddressSanitizer-i386-linux :: TestCases/memcmp_strict_test.cpp
AddressSanitizer-i386-linux :: TestCases/memcmp_test.cpp
https://github.com/llvm/llvm-project/pull/67204
More information about the llvm-commits
mailing list