summaryrefslogtreecommitdiffstats
path: root/compiler-rt
Commit message (Collapse)AuthorAgeFilesLines
* [asan] fix fixed mapping for mac (ASAN_FLEXIBLE_MAPPING_AND_OFFSET=0)Kostya Serebryany2013-02-131-1/+5
| | | | llvm-svn: 175049
* [msan] don't check shadow inside interceptors if we are inside symbolizer; ↵Kostya Serebryany2013-02-135-6/+42
| | | | | | add weak function __msan_default_options that overrides default options llvm-svn: 175040
* [tsan] simplify tsan-vs-gvn test since gvn vs tsan is now fixed; fix lint Kostya Serebryany2013-02-132-8/+6
| | | | llvm-svn: 175037
* Highlight caret in bold green, to match Clang diagnostics.Richard Smith2013-02-121-2/+7
| | | | llvm-svn: 175013
* [sanitizer] Tests for scanf parser in allowGnuMalloc=false mode.Evgeniy Stepanov2013-02-121-7/+30
| | | | llvm-svn: 174971
* [msan] Allow zero buf pointer in getcwd() interceptor.Evgeniy Stepanov2013-02-122-1/+8
| | | | llvm-svn: 174970
* [sanitizer] More accurate scanf parsing without GNU extensions.Evgeniy Stepanov2013-02-122-13/+15
| | | | | | | | | In __isoc99_*scanf we don't have to worry about GNUisms, and can parse %a accurately. Patch by Jakub Jelinek. llvm-svn: 174969
* [asan] Add new __isoc99_*scanf to ASan intercepted functions list.Evgeniy Stepanov2013-02-121-0/+14
| | | | llvm-svn: 174965
* [sanitizer] Missing changes from r174960.Evgeniy Stepanov2013-02-122-0/+12
| | | | llvm-svn: 174962
* [sanitizer] Intercept __isoc99_*scanf.Evgeniy Stepanov2013-02-122-66/+64
| | | | llvm-svn: 174960
* [asan] change the default mapping offset on x86_64 to 0x7fff8000. This gives ↵Kostya Serebryany2013-02-122-2/+6
| | | | | | roughly 5% speedup. Since this is an ABI change, bump the asan ABI version by renaming __asan_init to __asan_init_v1. compiler-rt part llvm-svn: 174958
* [MSan] symbolize correct PC when printing Summary messageAlexey Samsonov2013-02-121-1/+2
| | | | llvm-svn: 174956
* [sanitizer] clang-format pass over scanf code.Evgeniy Stepanov2013-02-112-85/+86
| | | | llvm-svn: 174888
* [sanitizer] scanf: don't report stores that did not happen.Evgeniy Stepanov2013-02-113-20/+51
| | | | | | | Respect REAL(scanf) return value and don't report memory stores that could potentially happen, but did not. llvm-svn: 174887
* [sanitizer] Remove an extra va_copy.Evgeniy Stepanov2013-02-112-8/+5
| | | | llvm-svn: 174883
* [sanitizer] Scanf parser improvements.Evgeniy Stepanov2013-02-112-14/+63
| | | | | | | | | Handle %a in cases when it is unambiguous. Handle %m. Patch by Jakub Jelinek. llvm-svn: 174882
* [msan] Lit tests for MemorySanitizer.Evgeniy Stepanov2013-02-1110-22/+208
| | | | | | | | Build system setup for MSan lit tests (build with freshly-built clang, run, check output) - a nearly exact copy from ASan. First 2 lit tests for MSan. llvm-svn: 174876
* [tsan] added tsan-vs-gvn testKostya Serebryany2013-02-111-0/+40
| | | | llvm-svn: 174875
* [sanitizer] Fix line numbers in a sanitizer lit test.Evgeniy Stepanov2013-02-111-5/+5
| | | | llvm-svn: 174861
* [asan] Fix off-by-one in AddrIsAtRight.Evgeniy Stepanov2013-02-082-1/+47
| | | | llvm-svn: 174710
* [sanitizer] Fix lint.Evgeniy Stepanov2013-02-081-6/+8
| | | | llvm-svn: 174708
* [ASan] Switch Windows to allocator v2, also fixing some build errorsTimur Iskhodzhanov2013-02-085-6/+11
| | | | llvm-svn: 174707
* [ASan] Move functions using BitScan/clzl to sanitizer_commonTimur Iskhodzhanov2013-02-082-45/+53
| | | | llvm-svn: 174706
* [sanitizer] Add 2 random tests for the scanf implementation.Evgeniy Stepanov2013-02-081-0/+3
| | | | llvm-svn: 174705
* [sanitizer] Improve scanf interceptorEvgeniy Stepanov2013-02-083-140/+261
| | | | | | | | | | | | | | This a rewrite of the scanf parser. The new implementation is pretty close to the spec, with a few shortcuts taken here and there. It is conservative, i.e. it gives up parsing if it does not understand some part of the format string, or runs into an ambiguous % spec. It does not handle some rarely used parts of the spec, like %n$ - for now. I'm also moving parser call to after the original *scanf function completes, so that we can find out the store size of %s directive by the use of strlen() on the target buffer. llvm-svn: 174704
* [CMake] set -mmacosx-version-min to 10.7 if compiler-rt is built with ↵Alexey Samsonov2013-02-082-1/+24
| | | | | | -stdlib=libc++ llvm-svn: 174699
* tsan: fix suppress_java logicDmitry Vyukov2013-02-071-7/+10
| | | | llvm-svn: 174635
* [ASan] Remove the replace_cfallocator flag, which is used no more.Alexander Potapenko2013-02-072-4/+0
| | | | | | See https://code.google.com/p/address-sanitizer/issues/detail?id=10 for the context. llvm-svn: 174629
* [ASan] Enable alloc_dealloc_mismatch by default on Darwin.Alexander Potapenko2013-02-072-5/+2
| | | | | | Enable AddressSanitizer.AllocDeallocMismatch tests. llvm-svn: 174628
* [ASan] Enable the new and delete wrappers on Darwin.Alexander Potapenko2013-02-072-11/+6
| | | | | | Also fix large_func_test.cc, which got broken when we switched to allocator2: the OOB access was too far from the original allocation, so ASan decided to describe the next one. llvm-svn: 174626
* tsan: intercept libc __res_icloseDmitry Vyukov2013-02-075-0/+32
| | | | | | this is required to catch close of file descriptors created in getaddrinfo() llvm-svn: 174624
* tsan: fix Go buildDmitry Vyukov2013-02-071-0/+2
| | | | llvm-svn: 174622
* [sanitizer] always allocate 16-byte aligned chunks of memoryKostya Serebryany2013-02-071-23/+38
| | | | llvm-svn: 174617
* [sanitizer_common] Fix lint warnings.Alexander Potapenko2013-02-071-4/+4
| | | | llvm-svn: 174616
* [ASan] Fix a compilation warning.Alexander Potapenko2013-02-071-1/+1
| | | | llvm-svn: 174604
* [ASan] Implement asan_mz_size(), asan_mz_force_lock() and ↵Alexander Potapenko2013-02-073-5/+56
| | | | | | | | asan_mz_force_unlock() for allocator2. Switch to allocator2 on Darwin. llvm-svn: 174603
* [sanitizer] OFF_T on Mac is u64.Evgeniy Stepanov2013-02-071-0/+5
| | | | llvm-svn: 174600
* [tsan] race_on_write testKostya Serebryany2013-02-071-0/+39
| | | | llvm-svn: 174599
* [sanitizer] Exclude off64_t test on mac.Evgeniy Stepanov2013-02-071-0/+3
| | | | llvm-svn: 174598
* [Sanitizer] include stddef.h for ptrdiff_t in interception type testAlexey Samsonov2013-02-071-0/+1
| | | | llvm-svn: 174597
* Implement aeabi_{f,d}cmp*.Zonr Chang2013-02-074-0/+82
| | | | | | Special thanks to Anton for the review. llvm-svn: 174596
* [msan] add strip_path_prefix flag; print error summary; don't crash while ↵Kostya Serebryany2013-02-075-4/+21
| | | | | | printing summary if debug info is missing. The tests will follow later once we establish the lit-like tests for msan. llvm-svn: 174595
* [sanitizer] Add a missing header.Evgeniy Stepanov2013-02-071-0/+1
| | | | llvm-svn: 174594
* [sanitizer] Fix wrong size of OFF_T on 32-bit platforms.Evgeniy Stepanov2013-02-073-1/+39
| | | | | | | This broke pread/pwrite interceptors when building without -D_FILE_OFFSET_BITS=64, and always on Android. llvm-svn: 174593
* [TSan] skip multiple internal frames, if necessaryAlexey Samsonov2013-02-063-15/+13
| | | | llvm-svn: 174516
* [ASan] fix the interceptor for siglongjmp. As we're using dylib ↵Alexander Potapenko2013-02-061-3/+1
| | | | | | interposition, we must intercept both siglongjmp and longjmp on Darwin. llvm-svn: 174510
* Use 64-bit inodes in file operations. ASan is now built with ↵Alexander Potapenko2013-02-061-0/+6
| | | | | | | | -mmacosx-version-min=10.5, thus the default inode size is 32 bits. However the supported client code is going to target 10.6 and higher, where 64-bit inodes will be used. llvm-svn: 174507
* [tsan] improve FrameIsInternalKostya Serebryany2013-02-062-1/+6
| | | | llvm-svn: 174506
* [tsan] print error summary lineKostya Serebryany2013-02-0610-25/+55
| | | | llvm-svn: 174505
* [asan] print a short one-line report summary after the full report. ↵Kostya Serebryany2013-02-068-6/+65
| | | | | | Currently, works only if symbolization happens in-process. llvm-svn: 174501
OpenPOWER on IntegriCloud