Alexey Samsonov
|
0d7755ccb5
|
[ASan] Add interceptor for swapcontext to fight with false positives in some of its use cases.
llvm-svn: 168508
|
2012-11-23 09:46:34 +00:00 |
Alexey Samsonov
|
298e237d7e
|
[ASan] Add extern C for __asan_symbolize on Windows
llvm-svn: 165003
|
2012-10-02 12:35:42 +00:00 |
Alexey Samsonov
|
e29c6731aa
|
[Sanitizer/ASan] Simplify the code that prints and symbolizes stack traces. Fall back to module+offset if user-provided symbolizer failed. Use weak function __asan_symbolize instead of __asan_set_symbolize_callback in ASan interface, so that we're able to symbolize reports for errors that happen before the main() is called, for example, during module initialization.
llvm-svn: 165000
|
2012-10-02 12:11:17 +00:00 |
Kostya Serebryany
|
27dcb2379f
|
[asan] fix Windows build
llvm-svn: 162758
|
2012-08-28 14:14:30 +00:00 |
Kostya Serebryany
|
6b0d775229
|
[asan] some renaming before we move StackTrace into sanitizer_common
llvm-svn: 162747
|
2012-08-28 11:54:30 +00:00 |
Alexander Potapenko
|
fefc1e989c
|
If the program is linked to a dynamic ASan runtime which is not present in DYLD_INSERT_LIBRARIES
(which, in turn, is required for our interceptors to take effect), re-exec the program with
DYLD_INSERT_LIBRARIES set.
llvm-svn: 162547
|
2012-08-24 09:22:05 +00:00 |
Alexey Samsonov
|
a85b6b8154
|
[ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer
llvm-svn: 162358
|
2012-08-22 13:31:37 +00:00 |
Alexander Potapenko
|
51e6488b31
|
Intercept CFAllocator for each thread in the program.
Test that child threads use the ASan allocator, that allocated memory can be passed to another thread and deallocated on it.
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=81
llvm-svn: 160630
|
2012-07-23 14:07:58 +00:00 |
Alexey Samsonov
|
e1cb524226
|
[Sanitizer] Renaming: SNPrintf -> internal_snprintf (and move it to sanitizer libc)
llvm-svn: 158710
|
2012-06-19 09:21:57 +00:00 |
Alexey Samsonov
|
40e5128412
|
[Sanitizer] move ShadowRangeIsAvailable and several defines to common runtime
llvm-svn: 158499
|
2012-06-15 07:29:14 +00:00 |
Alexey Samsonov
|
e4a889866d
|
[Sanitizer] move atomic ops, min/max and sort to commnon runtime
llvm-svn: 158496
|
2012-06-15 07:00:31 +00:00 |
Alexey Samsonov
|
70afb91636
|
[Sanitizer] move more portability wrappers to common runtime: sleep, _exit, abort, atexit, pthread_self
llvm-svn: 158493
|
2012-06-15 06:37:34 +00:00 |
Alexey Samsonov
|
ae1e171b72
|
[Sanitizer] move DumpProcessMap and DisableCoreDumper to common runtime
llvm-svn: 158490
|
2012-06-15 06:08:19 +00:00 |
Alexey Samsonov
|
c70d1086f6
|
[Sanitizer] move rest of mmap routines to common sanitizer runtime
llvm-svn: 158452
|
2012-06-14 14:42:58 +00:00 |
Alexey Samsonov
|
0c53a38abb
|
[Sanitizer] move portable GetEnv to common sanitizer runtime
llvm-svn: 158451
|
2012-06-14 14:07:21 +00:00 |
Alexey Samsonov
|
52f946611f
|
[ASan] don't include deleted header
llvm-svn: 158448
|
2012-06-14 13:15:45 +00:00 |
Alexey Samsonov
|
4b1f1031e6
|
[Sanitizer] factor out GetThreadStackTopAndBottom from ASan runtime to common.
llvm-svn: 158140
|
2012-06-07 07:13:46 +00:00 |
Alexey Samsonov
|
40d5b772e5
|
[Sanitizer] Switch to common mmap/munmap routines in ASan run-time.
llvm-svn: 158078
|
2012-06-06 16:15:07 +00:00 |
Kostya Serebryany
|
79437fe376
|
[asan] make tid u32 instead of int
llvm-svn: 158074
|
2012-06-06 15:06:58 +00:00 |
Kostya Serebryany
|
53b74ac256
|
[asan] start compacting the allocator header, the goal is to make it 16 bytes w/o losing any information
llvm-svn: 158072
|
2012-06-06 14:46:38 +00:00 |
Alexey Samsonov
|
ee07290628
|
[Sanitizer] Move more functions/constants to sanitizer_common.
llvm-svn: 158056
|
2012-06-06 09:26:25 +00:00 |
Alexey Samsonov
|
1b12eda7ec
|
[ASan] use internal_{close,read,write} in ASan runtime.
llvm-svn: 157991
|
2012-06-05 08:48:10 +00:00 |
Alexey Samsonov
|
f5e2dc3c3d
|
[ASan] use internal_open from sanitizer_libc in ASan runtime
llvm-svn: 157986
|
2012-06-05 07:25:47 +00:00 |
Kostya Serebryany
|
8a66b71c8f
|
[asan] partial fix for windows build
llvm-svn: 157750
|
2012-05-31 16:06:05 +00:00 |
Kostya Serebryany
|
1d35d155fd
|
[asan] more renaming
llvm-svn: 157747
|
2012-05-31 15:02:07 +00:00 |
Kostya Serebryany
|
8d03204204
|
[asan] more renaming
llvm-svn: 157746
|
2012-05-31 14:35:53 +00:00 |
Timur Iskhodzhanov
|
ea365131a2
|
[ASan] Make for-Windows RTL compileable using Clang++
llvm-svn: 157188
|
2012-05-21 14:25:36 +00:00 |
Kostya Serebryany
|
1490c7996f
|
[asan] add flags: disable_core, abort_on_error and unmap_shadow_on_exit
llvm-svn: 154159
|
2012-04-06 01:27:11 +00:00 |
Timur Iskhodzhanov
|
7d2776960b
|
[ASan/Win] Fix lint warning
llvm-svn: 154111
|
2012-04-05 18:31:50 +00:00 |
Timur Iskhodzhanov
|
0881092306
|
[ASan/Win] Fix build by using inline assembly instead of an unavailable intrinsic function
llvm-svn: 154106
|
2012-04-05 17:16:32 +00:00 |
Kostya Serebryany
|
7a8f5e4d1e
|
[asan] make __asan::Deallocate immune to racy double-free (issue #57)
llvm-svn: 154097
|
2012-04-05 15:55:09 +00:00 |
Alexander Potapenko
|
08342aa1a1
|
Introduce the use_sigaltstack flag (off by default), which enables using alternate
per-thread stacks for signal handling. This allows to print more verbose error reports
for stack overflows.
llvm-svn: 154092
|
2012-04-05 10:54:52 +00:00 |
Timur Iskhodzhanov
|
70df757918
|
[ASan/Win] Eliminate a couple of FIXMEs, add NORETURN to CheckFailed/UNIMPLEMENTED
llvm-svn: 152628
|
2012-03-13 16:12:03 +00:00 |
Timur Iskhodzhanov
|
2f48b870f3
|
[ASan] Add back the support for /MT; intercept statically-linked functions
llvm-svn: 152557
|
2012-03-12 11:45:09 +00:00 |
Timur Iskhodzhanov
|
fead7f5aa5
|
[ASan] Use WriteFile instead of fwrite in AsanWrite
llvm-svn: 152540
|
2012-03-11 12:45:12 +00:00 |
Kostya Serebryany
|
b0f9354168
|
[asan] use O(log(N)) algorithm instead of O(N) in __asan_get_ownership
llvm-svn: 152467
|
2012-03-10 01:30:01 +00:00 |
Timur Iskhodzhanov
|
0f9c9a5332
|
[ASan] Intercept CreateThread on Windows
llvm-svn: 151366
|
2012-02-24 15:28:43 +00:00 |
Alexey Samsonov
|
d6651509d0
|
AddressSanitizer: get rid of stdlib.h and add (smaller) stddef.h instead
llvm-svn: 151162
|
2012-02-22 14:07:06 +00:00 |
Timur Iskhodzhanov
|
36d297d27f
|
[ASan] Intercept functions on Windows - first version
llvm-svn: 151161
|
2012-02-22 13:59:49 +00:00 |
Alexander Potapenko
|
2c0ed61c7a
|
Move the contents of AsanProcMaps::Dump() into AsanDumpProcessMaps() for Posix systems.
Define AsanDumpProcessMaps as unimplemented on Windows.
This should fix the Windows build.
llvm-svn: 151147
|
2012-02-22 09:11:55 +00:00 |
Kostya Serebryany
|
fcd535ba6c
|
[asan] implement __asan_set_death_callback
llvm-svn: 150414
|
2012-02-13 21:24:29 +00:00 |
Alexander Potapenko
|
720aaefb8d
|
Move the non-trivial implementation of AsanShadowRangeIsAvailable to asan_mac.cc
to avoid crashes on Linux and Win.
llvm-svn: 150398
|
2012-02-13 17:09:40 +00:00 |
Timur Iskhodzhanov
|
7ce3e5bb8e
|
[asan] The first version of the RTL for Windows, reviewed at http://codereview.appspot.com/5647052
llvm-svn: 150185
|
2012-02-09 17:20:14 +00:00 |