summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-11Fix typoBill Wendling
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190543 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-11Revert r190520 as it wasn't the right fix.Daniel Jasper
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190524 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-11Add empty virtual destructor...Daniel Jasper
... as this otherwise triggers -Wnon-virtual-dtor. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190520 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-11[TSan] Use --whole-archive around TSan runtime in old TSan makefiles. Fix a ↵Alexey Samsonov
Go build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190513 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-11[Sanitizer] build sanitizer_common library with -Wglobal-constructorsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190504 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-11[TSan] Use Clang to compile and link TSan unit tests with TSan runtimeAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190503 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-10Fixup for r190410: use lazy initialization for symbolizer as some compilers ↵Alexey Samsonov
emit global constructor to setup vptr git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190414 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-10[ASan] Remove the explicit function prototypes for intercepted functions on ↵Timur Iskhodzhanov
Windows git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190411 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-10[Sanitizer] Refactor symbolization interface: use class instead of several ↵Alexey Samsonov
functions. Move some code around to get rid of extra source files git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190410 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-10[asan] refactor the use-after-return API so that the size class is computed ↵Kostya Serebryany
at compile time instead of at run-time. compiler-rt part git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190406 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-10[msan] Make all pointers in msan_interface "const volatile void *".Evgeniy Stepanov
This way msan annotations can be used with both normal and volatile memory. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190403 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-10[msan] bool -> int to make msan_interface.h C-compatible.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190402 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-10[ASan] Don't crash in DescribeHeapAddress if we don't know the current ↵Timur Iskhodzhanov
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190392 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-10Delete unused variables.Eli Friedman
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190383 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-10[dfsan] Initial set of DFSAN_OPTIONS flags.Peter Collingbourne
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190379 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-09Don't allow a NULL-length file. Try to revert to the buffered version.Bill Wendling
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190359 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-09[msan] Intercept fstatat / fstatat64.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190306 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-09[sanitizer] Fix PR17138.Evgeniy Stepanov
strerror_r on OSX returns a positive error code when the errno value is unknown. Buffer contents are initialized in any case. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190295 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-09[sanitizer] Delete extra whitespace.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190292 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-08[ASan] fix one more memory leak in test caseAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190277 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-08[Sanitizer] Use generic configs for running sanitizer_common unit testsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190276 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-08[ASan] turn on leak checking for ASan tests and fix a few discovered leaksAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190274 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06[sanitizer] Avoid including any system headers in the system-header-free ↵Evgeniy Stepanov
part of the runtime library. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190161 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06[sanitizer] Fix Android build.Evgeniy Stepanov
Android actually has "__unused" macro defined in <cdefs.h>. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190160 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06[sanitizer] A bunch of linux system call handlers.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190157 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06[ASan] make the check for NULL more portable.Alexander Potapenko
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190139 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06Fix compiler warning introduced in r190022Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190137 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ↵Alexey Samsonov
ATTRIBUTE_NO_SANITIZE_ADDRESS git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190136 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06[tsan] make calloc crash instead of returning 0 on overflow (controlled by ↵Kostya Serebryany
the allocator_may_return_null flag) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190135 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06[msan] make calloc crash instead of returning 0 on overflow (controlled by ↵Kostya Serebryany
the allocator_may_return_null flag) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190132 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06[asan] make calloc crash instead of returning 0 on overflow (controlled by ↵Kostya Serebryany
the allocator_may_return_null flag) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190128 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06[sanitizer] make the allocator crash instead of returning 0 on huge size ↵Kostya Serebryany
(controlled by the allocator_may_return_null flag) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190127 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-05[tsan] add colors to tsan outputKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190045 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-05sanitizers: Make sure Visual Studio gets error reportsReid Kleckner
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190030 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-05asan: Add a wcslen interceptor mirroring strlenReid Kleckner
Tested on Linux, since I can't build the tests on Windows yet. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190022 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-04[asan] add a test that demonstrates why the current use-after-return is not ↵Kostya Serebryany
signal-safe git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189943 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-04[asan] make use-after-return handle very deep recursion; fixes 483.xalancbmk ↵Kostya Serebryany
in UAR mode git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189929 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-04Disable FindPathToBinary test on AndroidAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189923 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03[asan] Hopefully un-break the RTL on WindowsTimur Iskhodzhanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189821 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03[asan] Hopefully fix the RTL build on Windows (part 2)Timur Iskhodzhanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189817 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03tsan: catch races on condition variablesDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189816 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03[asan] attemping to fix the Windows buildKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189814 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03Revert r185536 as it neither fixes any memory leaks, nor is it necessary ↵Timur Iskhodzhanov
(see the example from "man pthread_getattr_np") git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189810 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03implement PR17059: more visible diagnostics for stack-buffer-overflowKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189806 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03[lsan] Colorize LSan reports.Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189804 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03ASan, LSan, MSan: try to find llvm-symbolizer binary in PATH if it is not ↵Alexey Samsonov
provided. Now we don't need to explicitly set the location of llvm-symbolizer in lit test configs. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189801 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03[Sanitizer] Add the way to find binary in PATHAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189799 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03Add internal_strchrnul functionAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189797 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03[TSan] fixup for r189791: don't put ; on the newlineAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189792 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-03tsan: add suppressions for true/false positives in standard librariesDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189791 91177308-0d34-0410-b5e6-96231b3b80d8