summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/dfsan/scripts
Commit message (Collapse)AuthorAgeFilesLines
* compiler-rt: Rename .cc file in test/dfsan to cppNico Weber2019-08-051-1/+1
| | | | | | See r367849 et al. llvm-svn: 367854
* Try to heal bots more after r367551Nico Weber2019-08-011-1/+1
| | | | llvm-svn: 367555
* compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cppNico Weber2019-08-011-1/+1
| | | | | | Like r367463, but for dfsan, stats, ubsan_minimal. llvm-svn: 367551
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Add weak definitions of trace-cmp hooks to dfsanKostya Serebryany2018-06-011-0/+2
| | | | | | | | | | | | | | | | | | | | | Summary: This allows to build and link the code with e.g. -fsanitize=dataflow -fsanitize-coverage=trace-pc-guard,pc-table,func,trace-cmp w/o providing (all) the definitions of trace-cmp hooks. This is similar to dummy hooks provided by asan/ubsan/msan for the same purpose, except that some of the hooks need to have the __dfsw_ prefix since we need dfsan to replace them. Reviewers: pcc Reviewed By: pcc Subscribers: delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D47605 llvm-svn: 333796
* Add api_list entries for the dfsan-based fuzzerKostya Serebryany2015-05-061-1/+3
| | | | | | | | | | | | | | | | Summary: Add api_list entries for the dfsan-based fuzzer Test Plan: covered by check-fuzzer Reviewers: pcc Reviewed By: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9538 llvm-svn: 236657
* Make check_custom_wrappers.sh work on FreeBSDDimitry Andric2015-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: When running the compiler-rt testsuite on FreeBSD (it didn't matter which version), I always got the same error result: FAILED: cd /home/dim/obj/llvm-234092-trunk-freebsd10-amd64-ninja-rel-1/projects/compiler-rt/lib && LLVM_CHECKOUT=/home/dim/src/llvm/trunk SILENT=1 TMPDIR= PYTHON_EXECUTABLE=/usr/local/bin/python2.7 COMPILER_RT=/home/dim/src/llvm/trunk/projects/compiler-rt /home/dim/src/llvm/trunk/projects/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh The following differences between the implemented custom wrappers and the tests have been found: --- /tmp/tmp.vPFEefvclf 2015-04-04 17:11:44.996734563 +0200 +++ /tmp/tmp.NbIuvjxKEe 2015-04-04 17:11:45.044734647 +0200 @@ -1,52 +0,0 @@ -calloc -clock_gettime -ctime_r -dfsan_set_write_callback -dl_iterate_phdr -dlopen -fgets -fstat -get_current_dir_name -getcwd -gethostname -getpwuid_r -getrlimit -getrusage -gettimeofday -inet_pton -localtime_r -memchr -memcmp -memcpy -memset -nanosleep -poll -pread -pthread_create -read -sched_getaffinity -select -sigaction -sigemptyset -snprintf -socketpair -sprintf -stat -strcasecmp -strchr -strcmp -strcpy -strdup -strlen -strncasecmp -strncmp -strncpy -strrchr -strstr -strtod -strtol -strtoll -strtoul -strtoull -time -write After some investigation, it turns out to be due to the regex used for search test_ symbols in lib/dfsan/scripts/check_customer_wrappers.sh: grep -E "^\\s*test_.*\(\);" ${DFSAN_CUSTOM_TESTS} This uses \s to search for whitespace at start of line, but support for \s was only introduced in GNU grep v2.5.4-112-gf979ca0, while both FreeBSD and OSX only have grep 2.5.1 (the last version released under GPLv2). I propose to change \s into [[:space:]], which is the more portable notation. Test Plan: Run regression tests, and see that they work now. :) Reviewers: pcc, samsonov, emaste Reviewed By: emaste Subscribers: llvm-commits, emaste Differential Revision: http://reviews.llvm.org/D8832 llvm-svn: 234704
* [dfsan] Modify build-libc-list.py to filter out local functions in generatedPeter Collingbourne2014-11-051-0/+1
| | | | | | ABI list. llvm-svn: 221361
* Remove bashisms and switch to /bin/shEd Maste2014-10-081-16/+16
| | | | | | | | | On a default FreeBSD install Bash is not installed and fdescfs is not mounted. Use plain sh functionality instead. Differential Revision: http://reviews.llvm.org/D5631 llvm-svn: 219333
* Custom wrappers for DFSanitizing sprintf & snprintf.Lorenzo Martignoni2014-10-081-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D5561 llvm-svn: 219293
* 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
* Move DFSan test suite under test/Alexey Samsonov2014-02-141-1/+1
| | | | llvm-svn: 201403
* Added missing lib/dfsan/scripts/check_custom_wrappers.shLorenzo Martignoni2013-11-271-0/+50
| | | | llvm-svn: 195838
* 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-211-50/+0
| | | | | | | | tests." It broke a buildbot. llvm-svn: 195392
* Implement a bunch of custom glibc wrappers & corresponding tests.Peter Collingbourne2013-11-211-0/+50
| | | | | | | | | | | | | - 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] Initial set of custom functions and interceptors for libc.Peter Collingbourne2013-08-151-0/+84
Differential Revision: http://llvm-reviews.chandlerc.com/D1397 llvm-svn: 188490
OpenPOWER on IntegriCloud