summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* [Sanitizer] Add the way to find binary in PATHAlexey Samsonov2013-09-031-0/+10
| | | | llvm-svn: 189799
* Add internal_strchrnul functionAlexey Samsonov2013-09-031-0/+7
| | | | llvm-svn: 189797
* [sanitizer_common] Add internal_clone().Sergey Matveev2013-09-021-2/+2
| | | | | | | | | | | Add a wrapper for the clone syscall for use in StopTheWorld. We implement it only for x86_64, so stop building StopTheWorld for other platforms (no one uses it outside x86_64 anyway). See https://code.google.com/p/address-sanitizer/issues/detail?id=214 for why we can't use the glibc clone() wrapper. llvm-svn: 189753
* [sanitizer] Refine CMake rules for generating exported symbols and lint checkingAlexey Samsonov2013-08-291-5/+0
| | | | llvm-svn: 189577
* Check code style in check-sanitizer commandAlexey Samsonov2013-08-281-0/+5
| | | | llvm-svn: 189475
* [sanitizer] fix code styleAlexey Samsonov2013-08-281-6/+6
| | | | llvm-svn: 189474
* [sanitizer] Add a fast version of StackDepotGet() for use in LSan.Sergey Matveev2013-08-262-0/+38
| | | | | | | Add a class that holds a snapshot of the StackDepot optimized for querying by ID. This allows us to speed up LSan dramatically. llvm-svn: 189217
* [tests] Update to use lit_config and lit package, as appropriate.Daniel Dunbar2013-08-092-7/+8
| | | | llvm-svn: 188116
* [sanitizer] Fix handling of %n in scanf interceptor.Evgeniy Stepanov2013-08-091-1/+1
| | | | | | | %n does not increase the input item count. The new code emits writes to %n arguments even if it has run out of input items. llvm-svn: 188069
* tsan: extend suppressions format with ^ and $ symbolsDmitry Vyukov2013-07-161-0/+19
| | | | | | | not it's possible to write more precise suppressions, e.g. "^foo$" won't match "blafoobar" llvm-svn: 186424
* [lsan] Add suppression support.Sergey Matveev2013-06-281-1/+2
| | | | llvm-svn: 185152
* [sanitizer] Support padding with spaces in Printf.Sergey Matveev2013-06-271-9/+23
| | | | llvm-svn: 185082
* [tsan] Move some suppressions-related code to common.Sergey Matveev2013-06-262-0/+131
| | | | | | Factor out code to be reused in LSan. Also switch from linked list to vector. llvm-svn: 184957
* [lsan] Fix android build.Sergey Matveev2013-06-241-1/+1
| | | | llvm-svn: 184704
* Revert to C-style callbacks for iteration over allocator chunks.Sergey Matveev2013-06-241-17/+10
| | | | | | | Also clean up LSan code, fix some comments and replace void* with uptr to bring down the number of reinterpret_casts. llvm-svn: 184700
* Fix unused function warning w/o changing compiler flags.Evgeniy Stepanov2013-06-202-3/+7
| | | | | | We have way too many different build systems. llvm-svn: 184409
* [sanitizer] Handle EVIOxxxx ioctls.Evgeniy Stepanov2013-06-202-1/+75
| | | | llvm-svn: 184405
* [Sanitizer] Rename InternalVector to InternalMmapVectorAlexey Samsonov2013-06-141-2/+2
| | | | llvm-svn: 183972
* [sanitizer] Fix r182994 - update test.Sergey Matveev2013-05-311-6/+6
| | | | llvm-svn: 182995
* Fix #if guards in sanitizer_common codeAlexey Samsonov2013-05-301-1/+1
| | | | llvm-svn: 182918
* [sanitizer] introduce LargeMmapAllocator::GetBlockBeginFastSingleThreaded, ↵Kostya Serebryany2013-05-301-2/+39
| | | | | | required for LeakSanitizer to work faster. Also fix lint. llvm-svn: 182917
* [sanitizer] Change the way GetThreadStackAndTls() obtains the thread ↵Sergey Matveev2013-05-291-15/+22
| | | | | | | | | | descriptor address. Instead of using arch_prctl(ARCH_GET_FS), read the address from the tread descriptor itself. This lets us avoid sandboxing issues. Also, GetThreadStackAndTls() can now be implemented on i386. llvm-svn: 182853
* [nolibc] Now that we have a custom allocator, remove dummy allocatorPeter Collingbourne2013-05-291-4/+0
| | | | | | definitions from test. llvm-svn: 182841
* Make InternalAlloc/InternalFree in sanitizer runtimes libc-free by switching ↵Alexey Samsonov2013-05-291-0/+10
| | | | | | to a custom allocator. llvm-svn: 182836
* [nolibc] Add a test case for Linux/x86_64.Peter Collingbourne2013-05-284-0/+78
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D873 llvm-svn: 182770
* Improve support for compiler-rt tests in CMake build.Alexey Samsonov2013-05-272-3/+3
| | | | | | | | Now compiler-rt tests run correctly if compiler-rt is checked out into arbitrary directory (not necessarily projects/compiler-rt). Patch by Greg Fitzgerald! llvm-svn: 182726
* [sanitizer] factor out ByteMap from SizeClassAllocator32 so that it can be ↵Kostya Serebryany2013-05-201-6/+19
| | | | | | later replaced with a more memory-efficient implementation on 64-bit. llvm-svn: 182234
* [nolibc] Begin moving sanitizer_common's libc-dependent code to a separate ↵Peter Collingbourne2013-05-171-2/+4
| | | | | | | | | | | | | | | | library Introduce a new object library, RTSanitizerCommonLibc, which will contain the subset of sanitizer_common with libc dependencies. RTSanitizerCommon contains the remainder of sanitizer_common, and is intended to have no libc dependencies. Begin moving code to RTSanitizerCommonLibc, starting with sanitizer_common.cc, whose libc-dependent portion is moved to sanitizer_common_libcdep.cc, the first member of the new library. This split affects the CMake build only. The makefile build continues to produce the full sanitizer_common library. llvm-svn: 182118
* tsan: comment out debug output in testDmitry Vyukov2013-05-171-2/+2
| | | | llvm-svn: 182087
* [sanitizer] Fix the region overflow condition in ↵Sergey Matveev2013-05-161-0/+29
| | | | | | SanitizerAllocator64::PopulateFreeList(). llvm-svn: 182002
* [sanitizer] fix the GetBlockBegin overflow bug while preserving the ↵Kostya Serebryany2013-05-161-5/+14
| | | | | | performance optimization (use 32-bit division when possible). Improve the benchmarks that checks for performance of GetBlockBegin/GetMetaData llvm-svn: 181989
* [sanitizer] added a test for a bug in allocator discovered by Sergey Matveev ↵Kostya Serebryany2013-05-161-1/+30
| | | | | | (uint32 overflow in GetBlockBegin) llvm-svn: 181984
* [asan] fix powerpc build and one test; fix lintKostya Serebryany2013-05-151-1/+1
| | | | llvm-svn: 181881
* [sanitizer] LibraryNameIs in sanitizer_linuxSergey Matveev2013-05-141-0/+24
| | | | llvm-svn: 181787
* [sanitizer] Minor fixes in sanitizer_common tests.Sergey Matveev2013-05-145-12/+17
| | | | llvm-svn: 181786
* [tsan] fix gcc build with -WallKostya Serebryany2013-05-141-2/+2
| | | | llvm-svn: 181763
* [nolibc] Change internal syscall API to remove reliance on libc's errno.Peter Collingbourne2013-05-081-8/+10
| | | | | | | | | | | | | This change moves to a model where the error value of a system call is potentially contained in the return value itself rather than being implicit in errno. The helper function internal_iserror can be used to extract the error value from a return value. On platforms other than Linux/x86_64 this still uses errno, but other platforms are free to port their error handling to this new model. Differential Revision: http://llvm-reviews.chandlerc.com/D756 llvm-svn: 181436
* [sanitizer] Move GetThreadStackAndTls from TSan to sanitizer_common.Sergey Matveev2013-05-072-0/+74
| | | | | | | | Move this function to sanitizer_common because LSan uses it too. Also, fix a bug where the TLS range reported for main thread was off by the size of the thread descriptor from libc (TSan doesn't care much, but for LSan it's critical). llvm-svn: 181322
* [sanitizer] Sanitizer __internal_*stat interface.Evgeniy Stepanov2013-05-071-0/+15
| | | | | | | | | With this change, __internal_*stat always expect a "struct stat *" argument. This avoids stat/stat64 caller-side confusion (sanitizer_common tests already made this mistake), and allows the use of __internal_fstat() as a drop-in replacement for libc's fstat(). llvm-svn: 181311
* Revert r180082 and add a test for SetEnv functionAlexey Samsonov2013-04-231-0/+9
| | | | llvm-svn: 180098
* [sanitizer] Fix boundary condition in LargeMmapAllocator::GetBlockBegin. ↵Kostya Serebryany2013-04-081-1/+8
| | | | | | Patch by Sergey Matveev llvm-svn: 179007
* [sanitizer] while doing fast unwinding make sure that the frame pointer is ↵Kostya Serebryany2013-04-041-4/+22
| | | | | | aligned; fix lint llvm-svn: 178747
* Fix unmatching ASan runtime flag for init-order checking exposed by r178158. ↵Alexey Samsonov2013-03-281-0/+1
| | | | | | Add a test for r178158. llvm-svn: 178229
* [Sanitizer] Disable atomic_test on Android, where it crashes Clang.Alexey Samsonov2013-03-261-0/+4
| | | | llvm-svn: 177998
* [Sanitizer] Add basic test for atomic_compare_exchange implementationAlexey Samsonov2013-03-252-0/+52
| | | | llvm-svn: 177851
* tsan: fix lint warningsDmitry Vyukov2013-03-181-3/+3
| | | | llvm-svn: 177251
* [Sanitizer] Rely on template argument deduction in sanitizer_allocator_testAlexey Samsonov2013-03-181-2/+2
| | | | llvm-svn: 177245
* [libsanitizer] StopTheWorld in sanitizer_commonAlexander Potapenko2013-03-153-0/+246
| | | | | | | | | | | StopTheWorld puts the process in a suspended state before running the user-supplied callback. To be used in TSan and in leak checking code. Linux implementation provided. Patch by Sergey Matveev (earthdok@google.com) llvm-svn: 177156
* [Sanitizer] Don't link tests with -lpthread on Android.Alexey Samsonov2013-03-151-2/+2
| | | | llvm-svn: 177151
* [sanitizer] fix gcc build warningsKostya Serebryany2013-03-151-2/+2
| | | | llvm-svn: 177149
OpenPOWER on IntegriCloud