summaryrefslogtreecommitdiffstats
path: root/compiler-rt
Commit message (Collapse)AuthorAgeFilesLines
* [Sanitizer] Refactor symbolization interface: use class instead of several ↵Alexey Samsonov2013-09-1026-866/+725
| | | | | | functions. Move some code around to get rid of extra source files llvm-svn: 190410
* [asan] refactor the use-after-return API so that the size class is computed ↵Kostya Serebryany2013-09-106-77/+81
| | | | | | at compile time instead of at run-time. compiler-rt part llvm-svn: 190406
* [msan] Make all pointers in msan_interface "const volatile void *".Evgeniy Stepanov2013-09-101-12/+13
| | | | | | This way msan annotations can be used with both normal and volatile memory. llvm-svn: 190403
* [msan] bool -> int to make msan_interface.h C-compatible.Evgeniy Stepanov2013-09-104-4/+4
| | | | llvm-svn: 190402
* [ASan] Don't crash in DescribeHeapAddress if we don't know the current ↵Timur Iskhodzhanov2013-09-101-16/+14
| | | | | | | | | thread's ID Also make DescribeThread easier to use. This was firing on Dr.ASan runs, not sure how to repro InvalidTID in a simple test. llvm-svn: 190392
* Delete unused variables.Eli Friedman2013-09-102-2/+0
| | | | llvm-svn: 190383
* [dfsan] Initial set of DFSAN_OPTIONS flags.Peter Collingbourne2013-09-104-3/+66
| | | | llvm-svn: 190379
* Don't allow a NULL-length file. Try to revert to the buffered version.Bill Wendling2013-09-091-0/+5
| | | | llvm-svn: 190359
* [msan] Intercept fstatat / fstatat64.Evgeniy Stepanov2013-09-092-0/+30
| | | | llvm-svn: 190306
* [sanitizer] Fix PR17138.Evgeniy Stepanov2013-09-092-2/+17
| | | | | | | strerror_r on OSX returns a positive error code when the errno value is unknown. Buffer contents are initialized in any case. llvm-svn: 190295
* [sanitizer] Delete extra whitespace.Evgeniy Stepanov2013-09-091-1/+1
| | | | llvm-svn: 190292
* [ASan] fix one more memory leak in test caseAlexey Samsonov2013-09-081-0/+1
| | | | llvm-svn: 190277
* [Sanitizer] Use generic configs for running sanitizer_common unit testsAlexey Samsonov2013-09-082-40/+9
| | | | llvm-svn: 190276
* [ASan] turn on leak checking for ASan tests and fix a few discovered leaksAlexey Samsonov2013-09-088-0/+20
| | | | llvm-svn: 190274
* [sanitizer] Avoid including any system headers in the system-header-free ↵Evgeniy Stepanov2013-09-063-27/+58
| | | | | | part of the runtime library. llvm-svn: 190161
* [sanitizer] Fix Android build.Evgeniy Stepanov2013-09-061-1/+1
| | | | | | Android actually has "__unused" macro defined in <cdefs.h>. llvm-svn: 190160
* [sanitizer] A bunch of linux system call handlers.Evgeniy Stepanov2013-09-068-671/+5565
| | | | llvm-svn: 190157
* [ASan] make the check for NULL more portable.Alexander Potapenko2013-09-061-6/+8
| | | | llvm-svn: 190139
* Fix compiler warning introduced in r190022Alexey Samsonov2013-09-061-1/+1
| | | | llvm-svn: 190137
* Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ↵Alexey Samsonov2013-09-062-8/+8
| | | | | | ATTRIBUTE_NO_SANITIZE_ADDRESS llvm-svn: 190136
* [tsan] make calloc crash instead of returning 0 on overflow (controlled by ↵Kostya Serebryany2013-09-065-4/+74
| | | | | | the allocator_may_return_null flag) llvm-svn: 190135
* [msan] make calloc crash instead of returning 0 on overflow (controlled by ↵Kostya Serebryany2013-09-062-2/+5
| | | | | | the allocator_may_return_null flag) llvm-svn: 190132
* [asan] make calloc crash instead of returning 0 on overflow (controlled by ↵Kostya Serebryany2013-09-063-11/+21
| | | | | | the allocator_may_return_null flag) llvm-svn: 190128
* [sanitizer] make the allocator crash instead of returning 0 on huge size ↵Kostya Serebryany2013-09-068-23/+94
| | | | | | (controlled by the allocator_may_return_null flag) llvm-svn: 190127
* [tsan] add colors to tsan outputKostya Serebryany2013-09-051-2/+43
| | | | llvm-svn: 190045
* sanitizers: Make sure Visual Studio gets error reportsReid Kleckner2013-09-054-33/+58
| | | | | | | | | Visual Studio appears to close stderr before launching a non-console win32 program. This means we don't see any sanitizer reports. If stderr printing fails, call OutputDebugStringA to get the reports into the Visual Studio debugger console. llvm-svn: 190030
* asan: Add a wcslen interceptor mirroring strlenReid Kleckner2013-09-053-0/+22
| | | | | | Tested on Linux, since I can't build the tests on Windows yet. llvm-svn: 190022
* [asan] add a test that demonstrates why the current use-after-return is not ↵Kostya Serebryany2013-09-041-0/+66
| | | | | | signal-safe llvm-svn: 189943
* [asan] make use-after-return handle very deep recursion; fixes 483.xalancbmk ↵Kostya Serebryany2013-09-043-7/+32
| | | | | | in UAR mode llvm-svn: 189929
* Disable FindPathToBinary test on AndroidAlexey Samsonov2013-09-041-1/+1
| | | | llvm-svn: 189923
* [asan] Hopefully un-break the RTL on WindowsTimur Iskhodzhanov2013-09-031-1/+2
| | | | llvm-svn: 189821
* [asan] Hopefully fix the RTL build on Windows (part 2)Timur Iskhodzhanov2013-09-031-2/+2
| | | | llvm-svn: 189817
* tsan: catch races on condition variablesDmitry Vyukov2013-09-033-0/+95
| | | | llvm-svn: 189816
* [asan] attemping to fix the Windows buildKostya Serebryany2013-09-031-11/+11
| | | | llvm-svn: 189814
* Revert r185536 as it neither fixes any memory leaks, nor is it necessary ↵Timur Iskhodzhanov2013-09-031-1/+0
| | | | | | (see the example from "man pthread_getattr_np") llvm-svn: 189810
* implement PR17059: more visible diagnostics for stack-buffer-overflowKostya Serebryany2013-09-033-3/+105
| | | | llvm-svn: 189806
* [lsan] Colorize LSan reports.Sergey Matveev2013-09-035-25/+31
| | | | llvm-svn: 189804
* ASan, LSan, MSan: try to find llvm-symbolizer binary in PATH if it is not ↵Alexey Samsonov2013-09-039-21/+14
| | | | | | provided. Now we don't need to explicitly set the location of llvm-symbolizer in lit test configs. llvm-svn: 189801
* [Sanitizer] Add the way to find binary in PATHAlexey Samsonov2013-09-034-0/+39
| | | | llvm-svn: 189799
* Add internal_strchrnul functionAlexey Samsonov2013-09-033-0/+15
| | | | llvm-svn: 189797
* [TSan] fixup for r189791: don't put ; on the newlineAlexey Samsonov2013-09-031-3/+1
| | | | llvm-svn: 189792
* tsan: add suppressions for true/false positives in standard librariesDmitry Vyukov2013-09-031-0/+14
| | | | llvm-svn: 189791
* [libsanitizer] Remove an unused variable introduced in r189789Alexander Potapenko2013-09-031-1/+0
| | | | llvm-svn: 189790
* [TSan] Move the /proc/self/maps parsing logic to sanitizer_common Alexander Potapenko2013-09-033-59/+78
| | | | | | Provide a generic way for the tools to generate memory profiles from contents of /proc/self/maps llvm-svn: 189789
* tsan: fix linking when -ltsan is passed before -lpthreadDmitry Vyukov2013-09-031-1/+1
| | | | | | | | | | libpthread is weird: /lib/x86_64-linux-gnu/libpthread.so.0:000000000000b9b0 T pthread_cond_init@@GLIBC_2.3.2 /lib/x86_64-linux-gnu/libpthread.so.0:000000000000c720 T pthread_cond_init@GLIBC_2.2.5 let's do it with @@ for now we can always introduce more macros parameters later llvm-svn: 189788
* [msan] Another regression test for r189786.Evgeniy Stepanov2013-09-031-0/+22
| | | | llvm-svn: 189787
* [msan] A regression test for r189785.Evgeniy Stepanov2013-09-031-0/+7
| | | | llvm-svn: 189786
* fix PR17061 (and pleeease, don't ask me for a test, this is just a minor ↵Kostya Serebryany2013-09-031-1/+1
| | | | | | output formatting issue :) llvm-svn: 189783
* asan: fix android buildDmitry Vyukov2013-09-032-0/+4
| | | | | | android does not have dlvsym llvm-svn: 189781
* tsan: properly intercept pthread_cond functionsDmitry Vyukov2013-09-027-42/+102
| | | | llvm-svn: 189767
OpenPOWER on IntegriCloud