summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/strspn-2.c
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-03-30 00:41:09 +0000
committerKuba Mracek <mracek@apple.com>2017-03-30 00:41:09 +0000
commit3f1112dbf71588d2d2f7945f1e219ea4e3b23800 (patch)
tree0814ce6fcd655ca1020321d1b144d255931d8e3b /test/asan/TestCases/strspn-2.c
parenta4ebae933f45ec8434bd934a3f7c060d82977745 (diff)
[asan] Support line numbers in StackVarDescr
When -fsanitize-address-use-after-scope is used, the instrumentation produces line numbers in stack frame descriptions. This patch make sure the ASan runtime supports this format (ParseFrameDescription needs to be able to parse "varname:line") and prepares lit tests to allow line numbers in ASan report output. Differential Revision: https://reviews.llvm.org/D31484 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@299043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/strspn-2.c')
-rw-r--r--test/asan/TestCases/strspn-2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/strspn-2.c b/test/asan/TestCases/strspn-2.c
index 4c899108d..d564ef8ae 100644
--- a/test/asan/TestCases/strspn-2.c
+++ b/test/asan/TestCases/strspn-2.c
@@ -14,7 +14,7 @@ int main(int argc, char **argv) {
char s2[5] = "abcd";
__asan_poison_memory_region ((char *)&s2[3], 2);
r = strspn(s1, s2);
- // CHECK:'s2' <== Memory access at offset {{[0-9]+}} partially overflows this variable
+ // CHECK:'s2'{{.*}} <== Memory access at offset {{[0-9]+}} partially overflows this variable
assert(r >= 2);
return 0;
}