summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/dfsan
Commit message (Collapse)AuthorAgeFilesLines
...
* [CMake] Rename add_compiler_rt_static_runtime to add_compiler_rt_runtime.Alexey Samsonov2014-03-311-2/+2
| | | | | | | | Soon there will be an option to build compiler-rt parts as shared libraries on Linux. Extracted from http://llvm-reviews.chandlerc.com/D3042 by Yuri Gribov. llvm-svn: 205183
* Add function to get the number of DFSan labels allocated.Peter Collingbourne2014-03-262-0/+10
| | | | | | | | | | Expose the number of DFSan labels allocated by adding function dfsan_get_label_count(). Patch by Sam Kerner! Differential Revision: http://llvm-reviews.chandlerc.com/D3109 llvm-svn: 204854
* [libsanitizer] Introduce flag descriptions.Alexander Potapenko2014-03-201-3/+3
| | | | | | | | | Extend ParseFlag to accept the |description| parameter, add dummy values for all existing flags. As the flags are parsed their descriptions are stored in a global linked list. The tool can later call __sanitizer::PrintFlagDescriptions() to dump all the flag names and their descriptions. Add the 'help' flag and make ASan, TSan and MSan print the flags if 'help' is set to 1. llvm-svn: 204339
* [CMake] Make append_if semantics similar to those used in LLVMAlexey Samsonov2014-03-131-2/+2
| | | | llvm-svn: 203773
* Update sanitizers' bash scripts.Alexey Samsonov2014-02-251-1/+1
| | | | | | | * Fix bash scripts to work on FreeBSD (patch by Viktor Kutuzov) * Update locations of lit tests in check_lint script. llvm-svn: 202145
* [CMake] Rename several variablesAlexey Samsonov2014-02-181-5/+6
| | | | llvm-svn: 201575
* [CMake] Add top-level target for each compiler-rt library, and add ↵Alexey Samsonov2014-02-181-0/+2
| | | | | | 'compiler-rt' target encompassing them all. llvm-svn: 201556
* [CMake] Check for -fPIE and -ffreestanding flags for consistencyAlexey Samsonov2014-02-181-6/+8
| | | | llvm-svn: 201549
* Move DFSan test suite under test/Alexey Samsonov2014-02-1411-991/+6
| | | | llvm-svn: 201403
* Move shared configs for lit test suites to test/ and unittests/ directoriesAlexey Samsonov2014-02-141-1/+1
| | | | llvm-svn: 201399
* Don't create check-ubsan and check-dfsan commands if they are not supported ↵Alexey Samsonov2014-01-241-1/+5
| | | | | | on this platform llvm-svn: 199979
* Fix -Werror compilation.Evgeniy Stepanov2013-12-191-1/+1
| | | | | | It was broken in r197601. llvm-svn: 197665
* [DFSan] New custom wrappersLorenzo Martignoni2013-12-183-24/+209
| | | | | | | | | | | | | | | | | | Added the following custom wrappers: strstr strrchr memchr nanosleep socketpair Tweaked a couple of existing wrappers: if a wrapper returns a pointers derived from an input pointer, then return the label of the input pointer Sorted tests invocation Differential Revision: D2354 llvm-svn: 197601
* [DFSan] Extend the ABI list to discard new glibc functionsLorenzo Martignoni2013-12-041-2/+38
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D2291 llvm-svn: 196389
* [DFSan] Change the way labels are propagated when comparing memory through ↵Lorenzo Martignoni2013-12-044-19/+97
| | | | | | | | | libc functions. Differential Revision: http://llvm-reviews.chandlerc.com/D2252 llvm-svn: 196388
* Added missing lib/dfsan/scripts/check_custom_wrappers.shLorenzo Martignoni2013-11-271-0/+50
| | | | llvm-svn: 195838
* Implement a bunch of custom glibc wrappers & corresponding testsLorenzo Martignoni2013-11-263-88/+919
| | | | llvm-svn: 195749
* build-libc-list.py: Replace --{,usr,gcc}lib with flags for specific libraries.Peter Collingbourne2013-11-251-12/+23
| | | | | | | This should allow us to cope with newer versions of GCC (and more esoteric directory layouts). llvm-svn: 195695
* Revert r195381, "Implement a bunch of custom glibc wrappers & corresponding ↵Peter Collingbourne2013-11-214-969/+88
| | | | | | | | tests." It broke a buildbot. llvm-svn: 195392
* Implement a bunch of custom glibc wrappers & corresponding tests.Peter Collingbourne2013-11-214-88/+969
| | | | | | | | | | | | | - Introduce several new custom glibc wrappers - Implement some of the not yet implemented wrappers - Refactor and extend the tests - Add script to make sure all declare custom glibc wrappers are implemented & tested. Patch by Lorenzo Martignoni! Differential Revision: http://llvm-reviews.chandlerc.com/D2234 llvm-svn: 195381
* [dfsan] Tweaks for the ABI listPeter Collingbourne2013-11-191-54/+100
| | | | | | | | | | | - Add a bunch of glibc functions to the ABI list - Group similar functions in the ABI Patch by Lorenzo Martignoni! Differential Revision: http://llvm-reviews.chandlerc.com/D2185 llvm-svn: 195110
* [DFSan] Don't include public headers in dfsan runtime codeAlexey Samsonov2013-11-174-14/+35
| | | | | | | | | | | | | | | | | | | Summary: Definitions we use in public sanitizer headers may slightly conflict with the ones we use in private sanitizer runtimes. Moreover, we generally forbid to include any system headers (like <stdint.h>) in sanitizer runtime headers. This leads to inevitable duplication of selected interface function declarations, but we decided to live with it. Reviewers: pcc Reviewed By: pcc CC: kcc, llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2179 llvm-svn: 194955
* [dfsan] Add a few easy functions to the ABI list.Peter Collingbourne2013-09-131-0/+11
| | | | llvm-svn: 190653
* [dfsan] Initial set of DFSAN_OPTIONS flags.Peter Collingbourne2013-09-104-3/+66
| | | | llvm-svn: 190379
* [dfsan] Add a syms file.Peter Collingbourne2013-08-292-1/+6
| | | | llvm-svn: 189620
* [dfsan] Add custom function for dl_iterate_phdr.Peter Collingbourne2013-08-283-0/+46
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1505 llvm-svn: 189503
* [dfsan] Add custom function for pthread_create.Peter Collingbourne2013-08-283-0/+48
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1504 llvm-svn: 189502
* [dfsan] Integration test for the equal-labels casePeter Collingbourne2013-08-231-0/+5
| | | | llvm-svn: 189134
* [dfsan] Initial set of custom functions and interceptors for libc.Peter Collingbourne2013-08-159-3/+4310
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1397 llvm-svn: 188490
* [dfsan] Runtime support for -dfsan-debug-nonzero-labels feature.Peter Collingbourne2013-08-151-0/+5
| | | | | | | | | | Reviewers: eugenis CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1406 llvm-svn: 188471
* [dfsan] New __dfsan_set_label runtime function.Peter Collingbourne2013-08-141-2/+7
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1396 llvm-svn: 188411
* [dfsan] Runtime support for ABI list functionality; can now run integration ↵Peter Collingbourne2013-08-147-10/+60
| | | | | | | | tests with args ABI. Differential Revision: http://llvm-reviews.chandlerc.com/D1351 llvm-svn: 188401
* [dfsan] Introduce dfsan_read_label runtime function.Peter Collingbourne2013-08-133-1/+14
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1349 llvm-svn: 188319
* [dfsan] Remove the unused __dfsan_memcpy function.Peter Collingbourne2013-08-131-7/+0
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1350 llvm-svn: 188238
* [dfsan] Begin a private header and move shadow_for there.Peter Collingbourne2013-08-122-4/+36
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1348 llvm-svn: 188231
* [dfsan] Introduce dfsan_union runtime function.Peter Collingbourne2013-08-122-0/+14
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1347 llvm-svn: 188229
* [tests] Update to use lit_config and lit package, as appropriate.Daniel Dunbar2013-08-092-11/+14
| | | | llvm-svn: 188116
* Simplify (and fix) check-dfsan configsAlexey Samsonov2013-08-084-24/+9
| | | | llvm-svn: 187968
* DataFlowSanitizer; compiler-rt changes.Peter Collingbourne2013-08-079-0/+454
DataFlowSanitizer is a generalised dynamic data flow analysis. Unlike other Sanitizer tools, this tool is not designed to detect a specific class of bugs on its own. Instead, it provides a generic dynamic data flow analysis framework to be used by clients to help detect application-specific issues within their own code. Differential Revision: http://llvm-reviews.chandlerc.com/D967 llvm-svn: 187924
OpenPOWER on IntegriCloud