summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* [asan] Add ForEachChunk() to sanitizer allocators. Patch by Sergey MatveevKostya Serebryany2013-03-151-0/+91
| | | | llvm-svn: 177147
* [Sanitizer] Generalize compile/link flags for sanitizer_common tests on ↵Alexey Samsonov2013-03-151-19/+18
| | | | | | Android and on other platforms. llvm-svn: 177146
* [Sanitizer] Build sanitizer_common tests w/o RTTI. Move ThreadRegistry class ↵Alexey Samsonov2013-03-151-1/+3
| | | | | | members below methods. llvm-svn: 177143
* [Sanitizer] Fix compiler warnings and style issues in sanitizer_common ↵Alexey Samsonov2013-03-143-24/+26
| | | | | | tests. Use -Werror=sign-compare when building them. llvm-svn: 177077
* [Sanitizer] Add generic ThreadRegistry class for sanitizer runtimes. This ↵Alexey Samsonov2013-03-142-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 Potapenko2013-03-141-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 Potapenko2013-03-141-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 Stepanov2013-03-131-1/+1
| | | | llvm-svn: 176938
* [sanitizer] use fewer size classes in the allocator to reduce the memory ↵Kostya Serebryany2013-03-121-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 Samsonov2013-03-111-0/+7
| | | | llvm-svn: 176805
* [sanitizer] make SizeClassAllocator64::GetBlockBegin more bullet proof (by ↵Kostya Serebryany2013-03-111-0/+6
| | | | | | Sergey Matveev) llvm-svn: 176799
* [msan] pthread_join() returns int, not void*Reid Kleckner2013-03-061-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 threadReid Kleckner2013-03-061-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 Samsonov2013-03-051-4/+4
| | | | | | EXPECT_EQ() args llvm-svn: 176479
* [Sanitizer] Add methods back() and pop_back() to InternalVector. Patch by ↵Alexey Samsonov2013-03-051-0/+5
| | | | | | Sergey Matveev llvm-svn: 176478
* [Sanitizer] Relax ThreadLister tests to allow possible pre-existing threads. ↵Alexey Samsonov2013-02-281-19/+24
| | | | | | Do proper mutex destruction. Patch by Sergey Matveev llvm-svn: 176249
* add Linux syscall wrappers and ThreadLister to sanitizer_commonKostya Serebryany2013-02-272-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 #ifndefKostya Serebryany2013-02-271-5/+7
| | | | llvm-svn: 176175
* [sanitizer] A low-level vector implementation to be used in leak checking ↵Kostya Serebryany2013-02-261-0/+11
| | | | | | code. Patch by Sergey Matveev llvm-svn: 176089
* [asan] use the new attribute syntax (no_address_safety_analysis => ↵Kostya Serebryany2013-02-261-1/+1
| | | | | | no_sanitize_address) llvm-svn: 176077
* [Sanitizer] one more fix for signed/unsigned mismatch in comparisonAlexey Samsonov2013-02-251-2/+2
| | | | llvm-svn: 176020
* [Sanitizer] fix signed/unsigned compare warnings in ↵Alexey Samsonov2013-02-252-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 unwinderReid Kleckner2013-02-222-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 Stepanov2013-02-191-0/+10
| | | | llvm-svn: 175515
* [sanitizer] Slightly lower allocator test memory consumption.Evgeniy Stepanov2013-02-191-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 spaceAlexey Samsonov2013-02-191-1/+18
| | | | llvm-svn: 175511
* [asan] instrument memory accesses with unusual sizesKostya Serebryany2013-02-191-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 IDAlexey Samsonov2013-02-181-5/+7
| | | | llvm-svn: 175424
* [sanitizer] Tests for scanf parser in allowGnuMalloc=false mode.Evgeniy Stepanov2013-02-121-7/+30
| | | | llvm-svn: 174971
* [sanitizer] clang-format pass over scanf code.Evgeniy Stepanov2013-02-111-23/+25
| | | | llvm-svn: 174888
* [sanitizer] scanf: don't report stores that did not happen.Evgeniy Stepanov2013-02-111-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 Stepanov2013-02-111-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 Stepanov2013-02-081-0/+3
| | | | llvm-svn: 174705
* [sanitizer] Improve scanf interceptorEvgeniy Stepanov2013-02-081-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 functionsAlexey Samsonov2013-02-041-0/+44
| | | | llvm-svn: 174316
* [Sanitizer] Add change missed in r173926Alexey Samsonov2013-01-301-1/+7
| | | | llvm-svn: 173929
* [Sanitizer] update style checker script and fix namespace style warningsAlexey Samsonov2013-01-301-1/+1
| | | | llvm-svn: 173910
* [CMake] Fix compiler-rt tests after r173617Alexey Samsonov2013-01-281-2/+1
| | | | llvm-svn: 173668
* [Sanitizer] More fixes to scanf interceptor: stub support for %s, support ↵Alexey Samsonov2013-01-251-0/+7
| | | | | | for %[...] directive llvm-svn: 173451
* [Sanitizer] fix errors in scanf interceptors: add support for %c and fix ↵Alexey Samsonov2013-01-251-0/+4
| | | | | | cases like %5d llvm-svn: 173440
* tsan: implement malloc stats queryingDmitry Vyukov2013-01-241-20/+36
| | | | llvm-svn: 173332
* CMake: create AddCompilerRT module and implement convenience ↵Alexey Samsonov2013-01-181-1/+0
| | | | | | add_compiler_rt_object_library function llvm-svn: 172826
* [sanitizer] lintEvgeniy Stepanov2013-01-181-7/+7
| | | | llvm-svn: 172817
* [sanitizer] Rename 2 files *.h->*.inc as appropriate.Evgeniy Stepanov2013-01-181-1/+13
| | | | | | Also add a missing include. llvm-svn: 172814
* CMake variables renaming: X86_64->x86_64 I386->i386Alexey Samsonov2013-01-181-4/+4
| | | | llvm-svn: 172812
* [sanitizer] Remove an unused variable.Evgeniy Stepanov2013-01-181-1/+0
| | | | llvm-svn: 172811
* [sanitizer] Common *scanf interceptors.Evgeniy Stepanov2013-01-182-0/+75
| | | | llvm-svn: 172805
* asan: fix standalone malloc implementationDmitry Vyukov2013-01-151-1/+14
| | | | llvm-svn: 172529
* asan: fix lint warningsDmitry Vyukov2013-01-151-4/+2
| | | | llvm-svn: 172520
* asan: fix bugs in the testlibDmitry Vyukov2013-01-151-45/+86
| | | | llvm-svn: 172519
OpenPOWER on IntegriCloud