summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/TestCases/strstr-2.c
Commit message (Collapse)AuthorAgeFilesLines
* [asan] Support line numbers in StackVarDescrKuba Mracek2017-03-301-1/+1
| | | | | | | | 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 llvm-svn: 299043
* Fix ASan test cases after r263177Alexey Samsonov2016-03-111-1/+1
| | | | llvm-svn: 263195
* [asan] Get rid of UB in string tests. Patch by Max Ostapenko.Yury Gribov2015-10-221-3/+4
| | | | | | Differential revision: http://reviews.llvm.org/D13895 llvm-svn: 250998
* Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS'Reid Kleckner2015-08-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839
* [asan] Add missing $ASAN_OPTIONS to some test casesKuba Brecka2015-07-071-1/+1
| | | | | | | | Since http://reviews.llvm.org/D10294, ASan test cases now respect default env. options via `ASAN_OPTION=$ASAN_OPTIONS:additional_options=xxx`. This patch adds this to a few test cases where it's still missing. Differential Revision: http://reviews.llvm.org/D10988 llvm-svn: 241571
* [ASan] Test churn for setting ASAN_OPTIONS=symbolize_vs_style=falseFilipe Cabecinhas2015-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This commit adds symbolize_vs_style=false to every instance of ASAN_OPTIONS in the asan tests and sets ASAN_OPTIONS=symbolize_vs_style=false in lit, for tests which don't set it. This way we don't need to make the tests be able to deal with both symbolize styles. This is the first patch in the series. I will eventually submit for the other sanitizers too. We need this change (or another way to deal with the different outputs) in order to be able to default to symbolize_vs_style=true on some platforms. Adding to this change, I'm also adding "env " before any command line which sets environment variables. That way the test works on other host shells, like we have if the host is running Windows. Reviewers: samsonov, kcc, rnk Subscribers: tberghammer, llvm-commits Differential Revision: http://reviews.llvm.org/D10294 llvm-svn: 239754
* [ASan] Fixed tests to pass on Darwin. Patch by Maria Guseva!Yury Gribov2015-06-021-1/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D10159 llvm-svn: 238837
* [sanitizer] More string interceptors: strstr, strcasestr, strspn, strcspn, ↵Yury Gribov2015-05-281-0/+19
strpbrk. Patch by Maria Guseva. Differential Revision: http://reviews.llvm.org/D9017 llvm-svn: 238406
OpenPOWER on IntegriCloud