1 // Test stopset overflow in strspn function
2 // RUN: %clang_asan %s -o %t && %env_asan_opts=strict_string_checks=true not %run %t 2>&1 | FileCheck %s
4 // Test intercept_strspn asan option
5 // RUN: %env_asan_opts=intercept_strspn=false %run %t 2>&1
9 #include <sanitizer/asan_interface.h>
11 int main(int argc
, char **argv
) {
15 __asan_poison_memory_region ((char *)&s2
[3], 2);
17 // CHECK:'s2'{{.*}} <== Memory access at offset {{[0-9]+}} partially overflows this variable