]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/fuzzer/strncmp-oob.test
Vendor import of compiler-rt trunk r351319 (just before the release_80
[FreeBSD/FreeBSD.git] / test / fuzzer / strncmp-oob.test
1 RUN: %cpp_compiler %S/StrncmpOOBTest.cpp -o %t-StrncmpOOBTest
2
3 RUN: env ASAN_OPTIONS=strict_string_checks=1 not %run %t-StrncmpOOBTest -seed=1 -runs=1000000 2>&1 | FileCheck %s --check-prefix=STRNCMP
4 STRNCMP: AddressSanitizer: heap-buffer-overflow
5 STRNCMP-NOT: __sanitizer_weak_hook_strncmp
6 STRNCMP: in LLVMFuzzerTestOneInput