summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/TestCases/Helpers
Commit message (Collapse)AuthorAgeFilesLines
* compiler-rt: Rename cc files below test/asan to cppNico Weber2019-08-0511-2/+2
| | | | | | See r367803 and similar other changes. llvm-svn: 367887
* [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.*Reid Kleckner2019-06-271-0/+0
| | | | | | | | | | | | | These lit configuration files are really Python source code. Using the .py file extension helps editors and tools use the correct language mode. LLVM and Clang already use this convention for lit configuration, this change simply applies it to all of compiler-rt. Reviewers: vitalybuka, dberris Differential Revision: https://reviews.llvm.org/D63658 llvm-svn: 364591
* ASan allocates a global data initialization array at the tail end of eachDmitry Mikulin2017-09-271-0/+1
| | | | | | | | | | | | | | | | compunit's .data section. This vector is not poisoned. Because of this the first symbol of the following section has no left red zone. As a result, ASan cannot detect underflow for such symbols. Poison ASan allocated metadata, it should not be accessible to user code. This fix does not eliminate the problem with missing left red zones but it reduces the set of vulnerable symbols from first symbols in each input data section to first symbols in the output section of the binary. Differential Revision: https://reviews.llvm.org/D38056 llvm-svn: 314365
* Combine helper file into main test file with ifdefsReid Kleckner2015-08-121-2/+0
| | | | | | | Keeping tests isolated to a single file is nice, and it was suggested in post-commit review for r244827. llvm-svn: 244833
* [ASan] Disable strict init-order checking if dlopen() is called.Alexey Samsonov2015-02-241-2/+2
| | | | | | | | | | | | | | | | Revise the fix to https://code.google.com/p/address-sanitizer/issues/detail?id=178: always disable strict init-order checking the first time dlopen() is called: at this point shared library is allowed to access globals defined in the main executable, as they are guaranteed to be initialized. Revise the test cases: * simplify init-order-dlopen.cc test case: make it Linux-specific (there's no strict init-order checking on other platforms anyway), and single-threaded. * reinforce init-order-pthread-create.cc test case: make sure that init-order checker would produce a false positive unless we turn it off at the moment we call pthread_create(). llvm-svn: 230288
* Move ASan lit-tests under test/asanAlexey Samsonov2014-02-1412-0/+90
llvm-svn: 201413
OpenPOWER on IntegriCloud