sanitizer: new "strict_string_checks" run-time flag
authorDmitry Vyukov <dvyukov@google.com>
Mon, 6 Apr 2015 18:00:26 +0000 (18:00 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 6 Apr 2015 18:00:26 +0000 (18:00 +0000)
commit1e5b9f41312a234595ce329149a6e1c07bfd0145
tree24de71bea6ebb6be04871d921c692517247d5181
parent9d3949cca36db1618c5c1d14e53dc28958d22430
sanitizer: new "strict_string_checks" run-time flag

This patch is related to Issue 346: moar string interceptors: strstr, strcasestr, strcspn, strpbrk
As was suggested in original review http://reviews.llvm.org/D6056 a new "strict_string_checks" run-time flag introduced.
The flag support applied for existing common, asan, msan and tsan interceptors. New asan tests added.

Change by Maria Guseva reviewed in http://reviews.llvm.org/D7123

llvm-svn: 234187
15 files changed:
compiler-rt/lib/asan/asan_interceptors.cc
compiler-rt/lib/asan/tests/asan_str_test.cc
compiler-rt/lib/msan/msan_interceptors.cc
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/lib/sanitizer_common/sanitizer_flags.inc
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
compiler-rt/test/asan/TestCases/atoi_strict.c [new file with mode: 0644]
compiler-rt/test/asan/TestCases/atol_strict.c [new file with mode: 0644]
compiler-rt/test/asan/TestCases/atoll_strict.c [new file with mode: 0644]
compiler-rt/test/asan/TestCases/strcat_strict.c [new file with mode: 0644]
compiler-rt/test/asan/TestCases/strchr_strict.c [new file with mode: 0644]
compiler-rt/test/asan/TestCases/strcmp_strict.c [new file with mode: 0644]
compiler-rt/test/asan/TestCases/strncat_strict.c [new file with mode: 0644]
compiler-rt/test/asan/TestCases/strtol_strict.c [new file with mode: 0644]
compiler-rt/test/asan/TestCases/strtoll_strict.c [new file with mode: 0644]