diff options
author | Kuba Mracek <mracek@apple.com> | 2017-03-30 00:41:09 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2017-03-30 00:41:09 +0000 |
commit | 3f1112dbf71588d2d2f7945f1e219ea4e3b23800 (patch) | |
tree | 0814ce6fcd655ca1020321d1b144d255931d8e3b /test/asan/TestCases/strstr-1.c | |
parent | a4ebae933f45ec8434bd934a3f7c060d82977745 (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/strstr-1.c')
-rw-r--r-- | test/asan/TestCases/strstr-1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/strstr-1.c b/test/asan/TestCases/strstr-1.c index 06a8a8a55..319cff546 100644 --- a/test/asan/TestCases/strstr-1.c +++ b/test/asan/TestCases/strstr-1.c @@ -15,7 +15,7 @@ int main(int argc, char **argv) { char s1[4] = "acb"; __asan_poison_memory_region ((char *)&s1[2], 2); r = strstr(s1, s2); - // CHECK:'s1' <== Memory access at offset {{[0-9]+}} {{partially overflows this variable|is inside this variable}} + // CHECK:'s1'{{.*}} <== Memory access at offset {{[0-9]+}} {{partially overflows this variable|is inside this variable}} assert(r == s1 + 1); return 0; } |