Alexey Samsonov
|
2c5cbd2b38
|
[Sanitizer] extend internal libc with stat/fstat/lstat functions
llvm-svn: 174316
|
2013-02-04 10:16:50 +00:00 |
Alexey Samsonov
|
c500132a93
|
[Sanitizer] Add change missed in r173926
llvm-svn: 173929
|
2013-01-30 13:19:15 +00:00 |
Alexey Samsonov
|
49a32c1d08
|
[Sanitizer] update style checker script and fix namespace style warnings
llvm-svn: 173910
|
2013-01-30 07:45:58 +00:00 |
Alexey Samsonov
|
5311754b62
|
[CMake] Fix compiler-rt tests after r173617
llvm-svn: 173668
|
2013-01-28 07:16:22 +00:00 |
Alexey Samsonov
|
622a7b2408
|
[Sanitizer] More fixes to scanf interceptor: stub support for %s, support for %[...] directive
llvm-svn: 173451
|
2013-01-25 15:26:19 +00:00 |
Alexey Samsonov
|
4899fb5cfb
|
[Sanitizer] fix errors in scanf interceptors: add support for %c and fix cases like %5d
llvm-svn: 173440
|
2013-01-25 11:43:32 +00:00 |
Dmitry Vyukov
|
6e406cda4b
|
tsan: implement malloc stats querying
llvm-svn: 173332
|
2013-01-24 09:08:03 +00:00 |
Alexey Samsonov
|
163ab9d0a5
|
CMake: create AddCompilerRT module and implement convenience add_compiler_rt_object_library function
llvm-svn: 172826
|
2013-01-18 16:05:21 +00:00 |
Evgeniy Stepanov
|
01671c33ff
|
[sanitizer] lint
llvm-svn: 172817
|
2013-01-18 13:12:56 +00:00 |
Evgeniy Stepanov
|
a6c4a387ee
|
[sanitizer] Rename 2 files *.h->*.inc as appropriate.
Also add a missing include.
llvm-svn: 172814
|
2013-01-18 13:01:18 +00:00 |
Alexey Samsonov
|
193b45f4fe
|
CMake variables renaming: X86_64->x86_64 I386->i386
llvm-svn: 172812
|
2013-01-18 12:45:44 +00:00 |
Evgeniy Stepanov
|
518a135ffe
|
[sanitizer] Remove an unused variable.
llvm-svn: 172811
|
2013-01-18 12:32:02 +00:00 |
Evgeniy Stepanov
|
222076e972
|
[sanitizer] Common *scanf interceptors.
llvm-svn: 172805
|
2013-01-18 11:17:23 +00:00 |
Dmitry Vyukov
|
9ab63f68fc
|
asan: fix standalone malloc implementation
llvm-svn: 172529
|
2013-01-15 12:57:02 +00:00 |
Dmitry Vyukov
|
1f48c1a9a1
|
asan: fix lint warnings
llvm-svn: 172520
|
2013-01-15 08:51:10 +00:00 |
Dmitry Vyukov
|
74764617d7
|
asan: fix bugs in the testlib
llvm-svn: 172519
|
2013-01-15 08:33:41 +00:00 |
Dmitry Vyukov
|
1e4b54d196
|
asan: rename the file (it's not 64-bit specific anymore)
llvm-svn: 172518
|
2013-01-15 08:04:27 +00:00 |
Evgeniy Stepanov
|
99d91289b6
|
Move large part of asan_test_utils.h to sanitizer_common.
Move my_rand() to the common header.
This lets us avoid the use of rand_r in sanitizer_common tests.
There is no rand_r on Android.
llvm-svn: 172421
|
2013-01-14 15:12:26 +00:00 |
Alexey Samsonov
|
4e958e5ddb
|
Fix-up copypasto from r172410
llvm-svn: 172419
|
2013-01-14 14:52:35 +00:00 |
Evgeniy Stepanov
|
cfe3b3b956
|
Build rules for sanitizer_common tests on Android.
llvm-svn: 172410
|
2013-01-14 14:08:25 +00:00 |
Evgeniy Stepanov
|
e375a1f036
|
Remove thread-locals from sanitizer_common tests.
Not supported on Android.
llvm-svn: 172408
|
2013-01-14 14:06:58 +00:00 |
Kostya Serebryany
|
f55e719a13
|
[asan] add more frames to standalone_malloc_test
llvm-svn: 172383
|
2013-01-14 07:59:09 +00:00 |
Dmitry Vyukov
|
3d462f89de
|
asan: add missing file
llvm-svn: 172381
|
2013-01-14 07:52:01 +00:00 |
Dmitry Vyukov
|
f22982bf0a
|
asan/tsan: move blocking mutex from asan to sanitizer_common
llvm-svn: 172380
|
2013-01-14 07:51:39 +00:00 |
Dmitry Vyukov
|
ecd73d36d4
|
asan/tsan: faster memory allocator
replace lists with arrays
llvm-svn: 172217
|
2013-01-11 16:41:19 +00:00 |
Dmitry Vyukov
|
f3a7087194
|
asan: improve allocator benchmark
llvm-svn: 172213
|
2013-01-11 16:22:53 +00:00 |
Dmitry Vyukov
|
83c4a77265
|
asan: improve the benchmark
llvm-svn: 172209
|
2013-01-11 15:57:19 +00:00 |
Dmitry Vyukov
|
c14bb685a1
|
asan/tsan: fix bug in list implementation
llvm-svn: 172187
|
2013-01-11 10:15:13 +00:00 |
Kostya Serebryany
|
e1be48fe64
|
[sanitizer] fix the non-cmake build (2-nd attempt)
llvm-svn: 172068
|
2013-01-10 13:33:15 +00:00 |
Kostya Serebryany
|
1199dc0327
|
[sanitizer] fix the non-cmake build
llvm-svn: 172063
|
2013-01-10 13:05:16 +00:00 |
Kostya Serebryany
|
4f6e4ae44a
|
[sanitizer] add standalone_malloc_test
llvm-svn: 172061
|
2013-01-10 12:34:12 +00:00 |
Kostya Serebryany
|
cb510e50e2
|
[asan] implement more strict checking for memset/etc parameters. Instead of checking the first and the last byte, we check the entire shadow region. This costs ~10 slowdown for the instrumented functions. Motivated by a nasty memset-buffer-overflow-by-140-bytes in chrome which was reported as a use-after-free or not at all
llvm-svn: 171198
|
2012-12-28 15:24:16 +00:00 |
Alexey Samsonov
|
c20f5d2246
|
Define COMPILER_RT_CAN_EXECUTE_TESTS variable on platforms where we can produce working binaries and use it in build rules for sanitizers tests
llvm-svn: 171160
|
2012-12-27 13:19:23 +00:00 |
Kostya Serebryany
|
6f604b5007
|
[asan/tsan] when unmapping a chunk of user memory, apply madvise(MADV_DONTNEED) to the corresponding chunk of shadow memory. Also update sanitizer_allocator64_testlib.cc
llvm-svn: 171144
|
2012-12-27 07:37:24 +00:00 |
Dmitry Vyukov
|
116518af74
|
tsan: fix tests to consistently use internal functions (otherwise it leads to false positives)
llvm-svn: 171057
|
2012-12-25 09:20:58 +00:00 |
Kostya Serebryany
|
ad24c58e16
|
[sanitizer] increase the maximum size class of the fast allocator. This should save quite a bit of memory in tsan/msan (and later in asan). This also puts more stress on the large allocator. Add a couple of checks
llvm-svn: 171055
|
2012-12-25 07:50:35 +00:00 |
Kostya Serebryany
|
db3250b8b3
|
[sanitizer] fix gcc warnings, enable one tests under asan_allocator2
llvm-svn: 171036
|
2012-12-24 14:53:13 +00:00 |
Kostya Serebryany
|
fc7de2910c
|
[sanitizer] make LargeMmapAllocator::GetBlockBegin faster by not using a linked list
llvm-svn: 171035
|
2012-12-24 14:35:14 +00:00 |
Kostya Serebryany
|
ebb23c8cfa
|
[sanitizer] rework the size class map in the sanitizer allocator: make the differences between size classes more uniform.
llvm-svn: 171031
|
2012-12-24 13:41:07 +00:00 |
Alexey Samsonov
|
e30a84f08f
|
[Sanitizer] CMake build rules for unittests: depend on headers when compiling a file with custom clang.
llvm-svn: 170897
|
2012-12-21 14:04:52 +00:00 |
Alexey Samsonov
|
53a965e125
|
[Sanitizer] Don't implicitly add object files to the list of dependencies when building compiler_rt unittests. Fix sanitizer_common and asan build rules accordingly. This also fixes check-sanitizer command on Ninja.
llvm-svn: 170870
|
2012-12-21 08:56:14 +00:00 |
Alexey Samsonov
|
aef6b78bcb
|
[Sanitizer] Fix CMake build rules for sanitizer_common tests to respect universal static libraries on Mac
llvm-svn: 170698
|
2012-12-20 14:38:02 +00:00 |
Alexey Samsonov
|
01674dfc8f
|
[Sanitizer] Modify CMake build rules for sanitizer_common unit tests: build them with fresh Clang for both 32- and 64-bits (if possible)
llvm-svn: 170691
|
2012-12-20 13:24:21 +00:00 |
Kostya Serebryany
|
2abbce6701
|
[sanitizer] one more stability fix in 64-bit allocator
llvm-svn: 170498
|
2012-12-19 06:51:45 +00:00 |
Kostya Serebryany
|
12676268fa
|
[sanitizer] fix LargeMmapAllocator::GetBlockBegin
llvm-svn: 170434
|
2012-12-18 14:56:38 +00:00 |
Kostya Serebryany
|
c8208c5258
|
[sanitizer] fix a bug that has crept into the sanitizer allocator and caused SEGV on allocations between 1Mb and 2Mb, improve the test
llvm-svn: 170274
|
2012-12-15 18:36:23 +00:00 |
Alexey Samsonov
|
6a68a9117b
|
[Sanitizer] remove extra typename
llvm-svn: 170208
|
2012-12-14 15:37:35 +00:00 |
Kostya Serebryany
|
673c052631
|
[sanitizer] add AllocatorLeakTest
llvm-svn: 170206
|
2012-12-14 14:20:29 +00:00 |
Dmitry Vyukov
|
51b6e07deb
|
tsan: fix lint warning
llvm-svn: 170202
|
2012-12-14 13:46:03 +00:00 |
Dmitry Vyukov
|
34aef74a4d
|
tsan: disable allocator tests in debug build
llvm-svn: 170187
|
2012-12-14 10:17:22 +00:00 |