[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
This commit is contained in:
Alex Richardson 2020-07-26 11:37:47 +01:00
parent 9b19400004
commit 98b61112c3
1 changed files with 2 additions and 2 deletions

View File

@ -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