Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [asan] Add ForEachChunk() to sanitizer allocators. Patch by Sergey Matveev | Kostya Serebryany | 2013-03-15 | 1 | -0/+91 | |
| | | | | llvm-svn: 177147 | |||||
* | [Sanitizer] Generalize compile/link flags for sanitizer_common tests on ↵ | Alexey Samsonov | 2013-03-15 | 1 | -19/+18 | |
| | | | | | | Android and on other platforms. llvm-svn: 177146 | |||||
* | [Sanitizer] Build sanitizer_common tests w/o RTTI. Move ThreadRegistry class ↵ | Alexey Samsonov | 2013-03-15 | 1 | -1/+3 | |
| | | | | | | members below methods. llvm-svn: 177143 | |||||
* | [Sanitizer] Fix compiler warnings and style issues in sanitizer_common ↵ | Alexey Samsonov | 2013-03-14 | 3 | -24/+26 | |
| | | | | | | tests. Use -Werror=sign-compare when building them. llvm-svn: 177077 | |||||
* | [Sanitizer] Add generic ThreadRegistry class for sanitizer runtimes. This ↵ | Alexey Samsonov | 2013-03-14 | 2 | -0/+229 | |
| | | | | | | class holds basic thread bookkeeping logic and allows specific sanitizer runtimes to create thread contexts and mark threads as created/running/joined etc. The class is based on the way we currently store thread contexts in TSan. llvm-svn: 177074 | |||||
* | [libsanitizer] fixed a bug in ThreadLister tests where we forgot to ↵ | Alexander Potapenko | 2013-03-14 | 1 | -9/+14 | |
| | | | | | | | | terminate one thread Patch by Sergey Matveev (earthdok@google.com) llvm-svn: 177068 | |||||
* | [libsanitizer] Fixed incorrect handling of pre-existing threads in ↵ | Alexander Potapenko | 2013-03-14 | 1 | -75/+146 | |
| | | | | | | | | | | ThreadLister test. Also, extended the test to check that ThreadLister::Reset() works as intended. Patch by Sergey Matveev (earthdok@google.com) llvm-svn: 177060 | |||||
* | [sanitizer] Move GetTlsSize code from TSan to sanitizer_common. | Evgeniy Stepanov | 2013-03-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 176938 | |||||
* | [sanitizer] use fewer size classes in the allocator to reduce the memory ↵ | Kostya Serebryany | 2013-03-12 | 1 | -3/+3 | |
| | | | | | | footprint. There is no all-size-fits-all constant here, but this change is positive or neutral on several large apps I've tested llvm-svn: 176855 | |||||
* | [Sanitizer] Implement BlockingMutex::CheckLocked() | Alexey Samsonov | 2013-03-11 | 1 | -0/+7 | |
| | | | | llvm-svn: 176805 | |||||
* | [sanitizer] make SizeClassAllocator64::GetBlockBegin more bullet proof (by ↵ | Kostya Serebryany | 2013-03-11 | 1 | -0/+6 | |
| | | | | | | Sergey Matveev) llvm-svn: 176799 | |||||
* | [msan] pthread_join() returns int, not void* | Reid Kleckner | 2013-03-06 | 1 | -1/+1 | |
| | | | | | | | pthread_join() returns an error code, not the result of the pthread_create() function like I thought. llvm-svn: 176554 | |||||
* | [sanitizers] Fix check failure on dealloc from new thread | Reid Kleckner | 2013-03-06 | 1 | -0/+36 | |
| | | | | | | | | | | | | | | Summary: Adds a test for this case, which was reduced from a chromium build of WebKit's DumpRenderTree. Reviewers: eugenis CC: glider Differential Revision: http://llvm-reviews.chandlerc.com/D495 llvm-svn: 176552 | |||||
* | [Sanitizer] fix signed-unsigned mismatch in test and use correct order of ↵ | Alexey Samsonov | 2013-03-05 | 1 | -4/+4 | |
| | | | | | | EXPECT_EQ() args llvm-svn: 176479 | |||||
* | [Sanitizer] Add methods back() and pop_back() to InternalVector. Patch by ↵ | Alexey Samsonov | 2013-03-05 | 1 | -0/+5 | |
| | | | | | | Sergey Matveev llvm-svn: 176478 | |||||
* | [Sanitizer] Relax ThreadLister tests to allow possible pre-existing threads. ↵ | Alexey Samsonov | 2013-02-28 | 1 | -19/+24 | |
| | | | | | | Do proper mutex destruction. Patch by Sergey Matveev llvm-svn: 176249 | |||||
* | add Linux syscall wrappers and ThreadLister to sanitizer_common | Kostya Serebryany | 2013-02-27 | 2 | -0/+110 | |
| | | | | | | | | ThreadLister is a Linux-specific class for obtaining the thread IDs of a process from procfs (/proc/<pid>/task/). It will be used by leak checking code. Also add several syscall wrappers which will be required by the same code that uses ThreadLister, but are not used in ThreadLister itself. Patch by Sergey Matveev llvm-svn: 176179 | |||||
* | [asan] guard ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS definition with an #ifndef | Kostya Serebryany | 2013-02-27 | 1 | -5/+7 | |
| | | | | llvm-svn: 176175 | |||||
* | [sanitizer] A low-level vector implementation to be used in leak checking ↵ | Kostya Serebryany | 2013-02-26 | 1 | -0/+11 | |
| | | | | | | code. Patch by Sergey Matveev llvm-svn: 176089 | |||||
* | [asan] use the new attribute syntax (no_address_safety_analysis => ↵ | Kostya Serebryany | 2013-02-26 | 1 | -1/+1 | |
| | | | | | | no_sanitize_address) llvm-svn: 176077 | |||||
* | [Sanitizer] one more fix for signed/unsigned mismatch in comparison | Alexey Samsonov | 2013-02-25 | 1 | -2/+2 | |
| | | | | llvm-svn: 176020 | |||||
* | [Sanitizer] fix signed/unsigned compare warnings in ↵ | Alexey Samsonov | 2013-02-25 | 2 | -4/+4 | |
| | | | | | | sanitizer_stacktrace_test. Build sanitizer_common tests with -Werror as we use predictable just-built Clang for building them llvm-svn: 176014 | |||||
* | [Sanitizer] Add a test for the fast unwinder | Reid Kleckner | 2013-02-22 | 2 | -0/+79 | |
| | | | | | | | | | | | | | | Summary: The test sets up fake x86-style fp+retaddr frames, since that's all the unwinder works with. Reviewers: kcc CC: eugenis Differential Revision: http://llvm-reviews.chandlerc.com/D445 llvm-svn: 175893 | |||||
* | [sanitizer] Fix FileOps test on Android. | Evgeniy Stepanov | 2013-02-19 | 1 | -0/+10 | |
| | | | | llvm-svn: 175515 | |||||
* | [sanitizer] Slightly lower allocator test memory consumption. | Evgeniy Stepanov | 2013-02-19 | 1 | -1/+1 | |
| | | | | | | This way it fits on a random 1G device. llvm-svn: 175513 | |||||
* | [Sanitizer] Allow runtime flags be separated by colon as well as space | Alexey Samsonov | 2013-02-19 | 1 | -1/+18 | |
| | | | | llvm-svn: 175511 | |||||
* | [asan] instrument memory accesses with unusual sizes | Kostya Serebryany | 2013-02-19 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | | This patch makes asan instrument memory accesses with unusual sizes (e.g. 5 bytes or 10 bytes), e.g. long double or packed structures. Instrumentation is done with two 1-byte checks (first and last bytes) and if the error is found __asan_report_load_n(addr, real_size) or __asan_report_store_n(addr, real_size) is called. asan-rt part Also fix lint. llvm-svn: 175508 | |||||
* | [Sanitizer] Make temporary filename depend on user ID | Alexey Samsonov | 2013-02-18 | 1 | -5/+7 | |
| | | | | llvm-svn: 175424 | |||||
* | [sanitizer] Tests for scanf parser in allowGnuMalloc=false mode. | Evgeniy Stepanov | 2013-02-12 | 1 | -7/+30 | |
| | | | | llvm-svn: 174971 | |||||
* | [sanitizer] clang-format pass over scanf code. | Evgeniy Stepanov | 2013-02-11 | 1 | -23/+25 | |
| | | | | llvm-svn: 174888 | |||||
* | [sanitizer] scanf: don't report stores that did not happen. | Evgeniy Stepanov | 2013-02-11 | 1 | -10/+33 | |
| | | | | | | | Respect REAL(scanf) return value and don't report memory stores that could potentially happen, but did not. llvm-svn: 174887 | |||||
* | [sanitizer] Scanf parser improvements. | Evgeniy Stepanov | 2013-02-11 | 1 | -5/+20 | |
| | | | | | | | | | Handle %a in cases when it is unambiguous. Handle %m. Patch by Jakub Jelinek. llvm-svn: 174882 | |||||
* | [sanitizer] Add 2 random tests for the scanf implementation. | Evgeniy Stepanov | 2013-02-08 | 1 | -0/+3 | |
| | | | | llvm-svn: 174705 | |||||
* | [sanitizer] Improve scanf interceptor | Evgeniy Stepanov | 2013-02-08 | 1 | -7/+23 | |
| | | | | | | | | | | | | | | 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 | |||||
* | [Sanitizer] extend internal libc with stat/fstat/lstat functions | Alexey Samsonov | 2013-02-04 | 1 | -0/+44 | |
| | | | | llvm-svn: 174316 | |||||
* | [Sanitizer] Add change missed in r173926 | Alexey Samsonov | 2013-01-30 | 1 | -1/+7 | |
| | | | | llvm-svn: 173929 | |||||
* | [Sanitizer] update style checker script and fix namespace style warnings | Alexey Samsonov | 2013-01-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 173910 | |||||
* | [CMake] Fix compiler-rt tests after r173617 | Alexey Samsonov | 2013-01-28 | 1 | -2/+1 | |
| | | | | llvm-svn: 173668 | |||||
* | [Sanitizer] More fixes to scanf interceptor: stub support for %s, support ↵ | Alexey Samsonov | 2013-01-25 | 1 | -0/+7 | |
| | | | | | | for %[...] directive llvm-svn: 173451 | |||||
* | [Sanitizer] fix errors in scanf interceptors: add support for %c and fix ↵ | Alexey Samsonov | 2013-01-25 | 1 | -0/+4 | |
| | | | | | | cases like %5d llvm-svn: 173440 | |||||
* | tsan: implement malloc stats querying | Dmitry Vyukov | 2013-01-24 | 1 | -20/+36 | |
| | | | | llvm-svn: 173332 | |||||
* | CMake: create AddCompilerRT module and implement convenience ↵ | Alexey Samsonov | 2013-01-18 | 1 | -1/+0 | |
| | | | | | | add_compiler_rt_object_library function llvm-svn: 172826 | |||||
* | [sanitizer] lint | Evgeniy Stepanov | 2013-01-18 | 1 | -7/+7 | |
| | | | | llvm-svn: 172817 | |||||
* | [sanitizer] Rename 2 files *.h->*.inc as appropriate. | Evgeniy Stepanov | 2013-01-18 | 1 | -1/+13 | |
| | | | | | | Also add a missing include. llvm-svn: 172814 | |||||
* | CMake variables renaming: X86_64->x86_64 I386->i386 | Alexey Samsonov | 2013-01-18 | 1 | -4/+4 | |
| | | | | llvm-svn: 172812 | |||||
* | [sanitizer] Remove an unused variable. | Evgeniy Stepanov | 2013-01-18 | 1 | -1/+0 | |
| | | | | llvm-svn: 172811 | |||||
* | [sanitizer] Common *scanf interceptors. | Evgeniy Stepanov | 2013-01-18 | 2 | -0/+75 | |
| | | | | llvm-svn: 172805 | |||||
* | asan: fix standalone malloc implementation | Dmitry Vyukov | 2013-01-15 | 1 | -1/+14 | |
| | | | | llvm-svn: 172529 | |||||
* | asan: fix lint warnings | Dmitry Vyukov | 2013-01-15 | 1 | -4/+2 | |
| | | | | llvm-svn: 172520 | |||||
* | asan: fix bugs in the testlib | Dmitry Vyukov | 2013-01-15 | 1 | -45/+86 | |
| | | | | llvm-svn: 172519 |