Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Sanitizer] Refactor symbolization interface: use class instead of several ↵ | Alexey Samsonov | 2013-09-10 | 26 | -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 Serebryany | 2013-09-10 | 6 | -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 Stepanov | 2013-09-10 | 1 | -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 Stepanov | 2013-09-10 | 4 | -4/+4 |
| | | | | llvm-svn: 190402 | ||||
* | [ASan] Don't crash in DescribeHeapAddress if we don't know the current ↵ | Timur Iskhodzhanov | 2013-09-10 | 1 | -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 Friedman | 2013-09-10 | 2 | -2/+0 |
| | | | | llvm-svn: 190383 | ||||
* | [dfsan] Initial set of DFSAN_OPTIONS flags. | Peter Collingbourne | 2013-09-10 | 4 | -3/+66 |
| | | | | llvm-svn: 190379 | ||||
* | Don't allow a NULL-length file. Try to revert to the buffered version. | Bill Wendling | 2013-09-09 | 1 | -0/+5 |
| | | | | llvm-svn: 190359 | ||||
* | [msan] Intercept fstatat / fstatat64. | Evgeniy Stepanov | 2013-09-09 | 2 | -0/+30 |
| | | | | llvm-svn: 190306 | ||||
* | [sanitizer] Fix PR17138. | Evgeniy Stepanov | 2013-09-09 | 2 | -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 Stepanov | 2013-09-09 | 1 | -1/+1 |
| | | | | llvm-svn: 190292 | ||||
* | [ASan] fix one more memory leak in test case | Alexey Samsonov | 2013-09-08 | 1 | -0/+1 |
| | | | | llvm-svn: 190277 | ||||
* | [Sanitizer] Use generic configs for running sanitizer_common unit tests | Alexey Samsonov | 2013-09-08 | 2 | -40/+9 |
| | | | | llvm-svn: 190276 | ||||
* | [ASan] turn on leak checking for ASan tests and fix a few discovered leaks | Alexey Samsonov | 2013-09-08 | 8 | -0/+20 |
| | | | | llvm-svn: 190274 | ||||
* | [sanitizer] Avoid including any system headers in the system-header-free ↵ | Evgeniy Stepanov | 2013-09-06 | 3 | -27/+58 |
| | | | | | | part of the runtime library. llvm-svn: 190161 | ||||
* | [sanitizer] Fix Android build. | Evgeniy Stepanov | 2013-09-06 | 1 | -1/+1 |
| | | | | | | Android actually has "__unused" macro defined in <cdefs.h>. llvm-svn: 190160 | ||||
* | [sanitizer] A bunch of linux system call handlers. | Evgeniy Stepanov | 2013-09-06 | 8 | -671/+5565 |
| | | | | llvm-svn: 190157 | ||||
* | [ASan] make the check for NULL more portable. | Alexander Potapenko | 2013-09-06 | 1 | -6/+8 |
| | | | | llvm-svn: 190139 | ||||
* | Fix compiler warning introduced in r190022 | Alexey Samsonov | 2013-09-06 | 1 | -1/+1 |
| | | | | llvm-svn: 190137 | ||||
* | Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ↵ | Alexey Samsonov | 2013-09-06 | 2 | -8/+8 |
| | | | | | | ATTRIBUTE_NO_SANITIZE_ADDRESS llvm-svn: 190136 | ||||
* | [tsan] make calloc crash instead of returning 0 on overflow (controlled by ↵ | Kostya Serebryany | 2013-09-06 | 5 | -4/+74 |
| | | | | | | the allocator_may_return_null flag) llvm-svn: 190135 | ||||
* | [msan] make calloc crash instead of returning 0 on overflow (controlled by ↵ | Kostya Serebryany | 2013-09-06 | 2 | -2/+5 |
| | | | | | | the allocator_may_return_null flag) llvm-svn: 190132 | ||||
* | [asan] make calloc crash instead of returning 0 on overflow (controlled by ↵ | Kostya Serebryany | 2013-09-06 | 3 | -11/+21 |
| | | | | | | the allocator_may_return_null flag) llvm-svn: 190128 | ||||
* | [sanitizer] make the allocator crash instead of returning 0 on huge size ↵ | Kostya Serebryany | 2013-09-06 | 8 | -23/+94 |
| | | | | | | (controlled by the allocator_may_return_null flag) llvm-svn: 190127 | ||||
* | [tsan] add colors to tsan output | Kostya Serebryany | 2013-09-05 | 1 | -2/+43 |
| | | | | llvm-svn: 190045 | ||||
* | sanitizers: Make sure Visual Studio gets error reports | Reid Kleckner | 2013-09-05 | 4 | -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 strlen | Reid Kleckner | 2013-09-05 | 3 | -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 Serebryany | 2013-09-04 | 1 | -0/+66 |
| | | | | | | signal-safe llvm-svn: 189943 | ||||
* | [asan] make use-after-return handle very deep recursion; fixes 483.xalancbmk ↵ | Kostya Serebryany | 2013-09-04 | 3 | -7/+32 |
| | | | | | | in UAR mode llvm-svn: 189929 | ||||
* | Disable FindPathToBinary test on Android | Alexey Samsonov | 2013-09-04 | 1 | -1/+1 |
| | | | | llvm-svn: 189923 | ||||
* | [asan] Hopefully un-break the RTL on Windows | Timur Iskhodzhanov | 2013-09-03 | 1 | -1/+2 |
| | | | | llvm-svn: 189821 | ||||
* | [asan] Hopefully fix the RTL build on Windows (part 2) | Timur Iskhodzhanov | 2013-09-03 | 1 | -2/+2 |
| | | | | llvm-svn: 189817 | ||||
* | tsan: catch races on condition variables | Dmitry Vyukov | 2013-09-03 | 3 | -0/+95 |
| | | | | llvm-svn: 189816 | ||||
* | [asan] attemping to fix the Windows build | Kostya Serebryany | 2013-09-03 | 1 | -11/+11 |
| | | | | llvm-svn: 189814 | ||||
* | Revert r185536 as it neither fixes any memory leaks, nor is it necessary ↵ | Timur Iskhodzhanov | 2013-09-03 | 1 | -1/+0 |
| | | | | | | (see the example from "man pthread_getattr_np") llvm-svn: 189810 | ||||
* | implement PR17059: more visible diagnostics for stack-buffer-overflow | Kostya Serebryany | 2013-09-03 | 3 | -3/+105 |
| | | | | llvm-svn: 189806 | ||||
* | [lsan] Colorize LSan reports. | Sergey Matveev | 2013-09-03 | 5 | -25/+31 |
| | | | | llvm-svn: 189804 | ||||
* | ASan, LSan, MSan: try to find llvm-symbolizer binary in PATH if it is not ↵ | Alexey Samsonov | 2013-09-03 | 9 | -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 PATH | Alexey Samsonov | 2013-09-03 | 4 | -0/+39 |
| | | | | llvm-svn: 189799 | ||||
* | Add internal_strchrnul function | Alexey Samsonov | 2013-09-03 | 3 | -0/+15 |
| | | | | llvm-svn: 189797 | ||||
* | [TSan] fixup for r189791: don't put ; on the newline | Alexey Samsonov | 2013-09-03 | 1 | -3/+1 |
| | | | | llvm-svn: 189792 | ||||
* | tsan: add suppressions for true/false positives in standard libraries | Dmitry Vyukov | 2013-09-03 | 1 | -0/+14 |
| | | | | llvm-svn: 189791 | ||||
* | [libsanitizer] Remove an unused variable introduced in r189789 | Alexander Potapenko | 2013-09-03 | 1 | -1/+0 |
| | | | | llvm-svn: 189790 | ||||
* | [TSan] Move the /proc/self/maps parsing logic to sanitizer_common | Alexander Potapenko | 2013-09-03 | 3 | -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 -lpthread | Dmitry Vyukov | 2013-09-03 | 1 | -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 Stepanov | 2013-09-03 | 1 | -0/+22 |
| | | | | llvm-svn: 189787 | ||||
* | [msan] A regression test for r189785. | Evgeniy Stepanov | 2013-09-03 | 1 | -0/+7 |
| | | | | llvm-svn: 189786 | ||||
* | fix PR17061 (and pleeease, don't ask me for a test, this is just a minor ↵ | Kostya Serebryany | 2013-09-03 | 1 | -1/+1 |
| | | | | | | output formatting issue :) llvm-svn: 189783 | ||||
* | asan: fix android build | Dmitry Vyukov | 2013-09-03 | 2 | -0/+4 |
| | | | | | | android does not have dlvsym llvm-svn: 189781 | ||||
* | tsan: properly intercept pthread_cond functions | Dmitry Vyukov | 2013-09-02 | 7 | -42/+102 |
| | | | | llvm-svn: 189767 |