- Feb 20, 2013
-
-
Alexey Samsonov authored
llvm-svn: 175622
-
Kostya Serebryany authored
llvm-svn: 175618
-
Evgeniy Stepanov authored
llvm-svn: 175615
-
Kostya Serebryany authored
llvm-svn: 175614
-
- Feb 19, 2013
-
-
Evgeniy Stepanov authored
llvm-svn: 175515
-
Kostya Serebryany authored
llvm-svn: 175514
-
Evgeniy Stepanov authored
This way it fits on a random 1G device. llvm-svn: 175513
-
Alexey Samsonov authored
[ASan] Allow ASan default runtime options be overriden at compile time by providing ASAN_DEFAULT_OPTIONS macro llvm-svn: 175512
-
Alexey Samsonov authored
llvm-svn: 175511
-
Evgeniy Stepanov authored
llvm-svn: 175510
-
Kostya Serebryany authored
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
-
Evgeniy Stepanov authored
execle(argv[0], ...) is wrong, because argv[0] may contain a PATH-resolvable program name. Execute /proc/self/exe instead. llvm-svn: 175504
-
Evgeniy Stepanov authored
llvm-svn: 175503
-
Evgeniy Stepanov authored
llvm-svn: 175499
-
Kostya Serebryany authored
llvm-svn: 175498
-
- Feb 18, 2013
-
-
Kostya Serebryany authored
[asan] enable asan_prelink_test when gold is the default linker (gold and bfd linker have different flag syntax) llvm-svn: 175431
-
Kostya Serebryany authored
[asan] added flag -d|--demangle to asan_symbolize.py, makes addr2line/llvm-symbolizer demangle the functions names llvm-svn: 175429
-
Alexey Samsonov authored
llvm-svn: 175424
-
- Feb 15, 2013
-
-
Alexey Samsonov authored
llvm-svn: 175285
-
Alexey Samsonov authored
llvm-svn: 175284
-
https://code.google.com/p/address-sanitizer/issues/detail?id=159Alexander Potapenko authored
MaybeReexec() does now a tricky job to manage DYLD_INSERT_LIBRARIES in a safe way. Because we're using library interposition, it's critical for an instrumented app to be executed with the runtime library present in DYLD_INSERT_LIBRARIES list. Therefore if it's initially missing in that list, we append the runtime library name to the value of DYLD_INSERT_LIBRARIES and then exec() ourselves. On the other hand, some of the apps exec()ed by our program may not want to have ASan runtime library preloaded, so we remove the runtime library from the DYLD_INSERT_LIBRARIES if it's already there. Users may want to preload other libraries using DYLD_INSERT_LIBRARIES, so we preserve those. llvm-svn: 175276
-
Kostya Serebryany authored
When prelink is installed in the system, prelink-ed libraries map between 0x003000000000 and 0x004000000000 thus occupying the shadow Gap, so we need so split the address space even further, like this: || [0x10007fff8000, 0x7fffffffffff] || HighMem || || [0x02008fff7000, 0x10007fff7fff] || HighShadow || || [0x004000000000, 0x02008fff6fff] || ShadowGap3 || || [0x003000000000, 0x003fffffffff] || MidMem || || [0x00087fff8000, 0x002fffffffff] || ShadowGap2 || || [0x00067fff8000, 0x00087fff7fff] || MidShadow || || [0x00008fff7000, 0x00067fff7fff] || ShadowGap || || [0x00007fff8000, 0x00008fff6fff] || LowShadow || || [0x000000000000, 0x00007fff7fff] || LowMem || Do it only if necessary. Also added a bit of profiling code to make sure that the mapping code is efficient. Added a lit test to simulate prelink-ed libraries. Unfortunately, this test does not work with binutils-gold linker. If gold is the default linker the test silently passes. Also replaced __has_feature(address_sanitizer) with __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) in two places. Patch partially by Jakub Jelinek. llvm-svn: 175263
-
- Feb 14, 2013
-
-
Evgeniy Stepanov authored
/proc/$PID/cmdline is clipped to 4Kb. Locate argv and envp on the main thread stack. llvm-svn: 175163
-
Alexander Potapenko authored
llvm-svn: 175157
-
Alexander Potapenko authored
The test may hang now if a regression occurs. llvm-svn: 175155
-
Dmitry Vyukov authored
llvm-svn: 175153
-
Evgeniy Stepanov authored
We are still limited by /proc/*/cmdline size (4Kb max on Linux!). llvm-svn: 175145
-
Kostya Serebryany authored
[asan] use short path for sanitizer_common/tests/sanitizer_test_utils.h, add -I sanitizer_common/tests to asan/tests/CMakeLists.txt llvm-svn: 175142
-
Kostya Serebryany authored
llvm-svn: 175140
-
Kostya Serebryany authored
llvm-svn: 175137
-
- Feb 13, 2013
-
-
Richard Smith authored
base-to-derived casts have undefined behavior if the object is not actually an instance of the derived type. Runtime library part. llvm-svn: 175079
-
Alexander Potapenko authored
[ASan] When re-executing the process on OS X, make sure we update the existing DYLD_INSERT_LIBRARIES correctly. Previously ASan used to hang in an exec loop, because it failed to overwrite the env var value (see https://code.google.com/p/address-sanitizer/issues/detail?id=159). llvm-svn: 175059
-
Dmitry Vyukov authored
better memory range access functions (put only 1 event to trace) (Go) llvm-svn: 175056
-
Kostya Serebryany authored
llvm-svn: 175049
-
Kostya Serebryany authored
[msan] don't check shadow inside interceptors if we are inside symbolizer; add weak function __msan_default_options that overrides default options llvm-svn: 175040
-
Kostya Serebryany authored
llvm-svn: 175037
-
- Feb 12, 2013
-
-
Richard Smith authored
llvm-svn: 175013
-
Evgeniy Stepanov authored
llvm-svn: 174971
-
Evgeniy Stepanov authored
llvm-svn: 174970
-
Evgeniy Stepanov authored
In __isoc99_*scanf we don't have to worry about GNUisms, and can parse %a accurately. Patch by Jakub Jelinek. llvm-svn: 174969
-