[PATCH] D13895: [asan] Get rid of UB in unit tests for strstr, strcasestr, strspn, strcspn and strpbrk interceptors.

Maxim Ostapenko via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 05:24:23 PDT 2015


m.ostepenko added inline comments.

================
Comment at: test/asan/TestCases/strcasestr-1.c:21
@@ -20,3 +22,1 @@
   r = strcasestr(s1, s2);
-  // CHECK:'s{{[1|3]}}' <== Memory access at offset {{[0-9]+ .*}}flows this variable
-  assert(r == s1 + 1);
----------------
Indeed, thanks. I'll update corresponding tests to use more strict checks.


Repository:
  rL LLVM

http://reviews.llvm.org/D13895





More information about the llvm-commits mailing list