[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
Tue Oct 20 07:01:22 PDT 2015
m.ostepenko created this revision.
m.ostepenko added reviewers: eugenis, samsonov, ygribov.
m.ostepenko added a subscriber: llvm-commits.
m.ostepenko set the repository for this revision to rL LLVM.
Following Eugeniy's suggestion in http://reviews.llvm.org/D10336, we can remove UB from tests for strstr, strcasestr, strspn, strcspn and strpbrk interceptors by extending corresponding string an poison it's tail manually.
Tested on x86_64-linux-gnu.
How does it look?
Repository:
rL LLVM
http://reviews.llvm.org/D13895
Files:
test/asan/TestCases/strcasestr-1.c
test/asan/TestCases/strcasestr-2.c
test/asan/TestCases/strcspn-1.c
test/asan/TestCases/strcspn-2.c
test/asan/TestCases/strpbrk-1.c
test/asan/TestCases/strpbrk-2.c
test/asan/TestCases/strspn-1.c
test/asan/TestCases/strspn-2.c
test/asan/TestCases/strstr-1.c
test/asan/TestCases/strstr-2.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13895.37877.patch
Type: text/x-patch
Size: 5870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151020/5d7fa5d2/attachment.bin>
More information about the llvm-commits
mailing list