[compiler-rt] 98b6111 - [asan] Mark the strstr test as UNSUPPORTED on FreeBSD

Alex Richardson via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 26 03:39:57 PDT 2020


Author: Alex Richardson
Date: 2020-07-26T11:37:47+01:00
New Revision: 98b61112c32e1d2f4a0037698e9ac1d46c23d6c7

URL: https://github.com/llvm/llvm-project/commit/98b61112c32e1d2f4a0037698e9ac1d46c23d6c7
DIFF: https://github.com/llvm/llvm-project/commit/98b61112c32e1d2f4a0037698e9ac1d46c23d6c7.diff

LOG: [asan] Mark the strstr test as UNSUPPORTED on FreeBSD

 Like Android, FreeBSDs libc calls memchr which causes this test to fail.

Reviewed By: emaste

Differential Revision: https://reviews.llvm.org/D84541

Added: 
    

Modified: 
    compiler-rt/test/asan/TestCases/strstr_strict.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/strstr_strict.c b/compiler-rt/test/asan/TestCases/strstr_strict.c
index 7d2c4ec2f325..0d9482723f5f 100644
--- a/compiler-rt/test/asan/TestCases/strstr_strict.c
+++ b/compiler-rt/test/asan/TestCases/strstr_strict.c
@@ -3,8 +3,8 @@
 
 // Newer versions of Android's strstr() uses memchr() internally, which actually
 // does trigger a heap-buffer-overflow (as it tries to find the
-// null-terminator).
-// UNSUPPORTED: android
+// null-terminator). The same applies to FreeBSD.
+// UNSUPPORTED: android, freebsd
 // RUN: %env_asan_opts=strict_string_checks=false %run %t 2>&1
 
 // RUN: %env_asan_opts=strict_string_checks=true not %run %t 2>&1 | FileCheck %s


        


More information about the llvm-commits mailing list