[PATCH] D13895: [asan] Get rid of UB in unit tests for strstr, strcasestr, strspn, strcspn and strpbrk interceptors.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 20 11:51:02 PDT 2015
eugenis added inline comments.
================
Comment at: test/asan/TestCases/strcasestr-1.c:21
@@ -20,3 +22,2 @@
r = strcasestr(s1, s2);
// CHECK:'s{{[1|3]}}' <== Memory access at offset {{[0-9]+ .*}}flows this variable
- assert(r == s1 + 1);
----------------
This check could be made more strict now, right?
It should be always "s1" and always "overflows".
Repository:
rL LLVM
http://reviews.llvm.org/D13895
More information about the llvm-commits
mailing list