| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 201413
|
|
|
|
| |
llvm-svn: 201399
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change replaces 32- and 64- bit config.in-s with a single config template
that is used to generate both 32 and 64 bits configs as well as the new
arm-android config. Arm-android config is special because it can run tests on
a remote device over adb (android debug bridge).
We replace %clang with a script that run the compiler, upload the result to
the device, and replaces it with another script. The second script runs the
binary on the device and delivers stdout/stderr/exitcode back.
llvm-svn: 201394
|
|
|
|
| |
llvm-svn: 201332
|
|
|
|
|
|
| |
Android headers define clone() as a 4-argument function without ellipsis.
llvm-svn: 201331
|
|
|
|
|
|
|
|
|
|
| |
With zero base shadow, shadow for near-zero access is itself at near-zero
location. As a result, this test crashes on the shadow access, and not on the
app access.
Relax a check to match this behavior.
llvm-svn: 201324
|
|
|
|
|
|
|
|
|
| |
It's not always true: on Android, strerror_r with invalid errno
prints "Unknown error ..." to the buffer and returns 0.
This test now only checks that strerror_r does not crash.
llvm-svn: 201321
|
|
|
|
| |
llvm-svn: 201304
|
|
|
|
|
|
| |
It's called __wait4 there.
llvm-svn: 201235
|
|
|
|
| |
llvm-svn: 200910
|
|
|
|
|
|
| |
garbage colection to work with asan's fake stack
llvm-svn: 200908
|
|
|
|
|
|
|
|
| |
triggering a buffer overflow in strlen and memcpy.
This change fixes printf-2.c and printf-4.c under OSX.
llvm-svn: 200756
|
|
|
|
|
|
| |
memcpy (which triggers the error report before printf does).
llvm-svn: 200751
|
|
|
|
| |
llvm-svn: 200686
|
|
|
|
|
|
| |
-fno-function-sections is broken in Clang.
llvm-svn: 200684
|
|
|
|
|
|
|
| |
It breaks when a binary is linked with --gc-sections: parts of sanitizer
interface get thrown away and inaccessible from dlopen-ed libs.
llvm-svn: 200683
|
|
|
|
|
|
|
|
| |
code stripping on Linux.
See https://code.google.com/p/address-sanitizer/issues/detail?id=260 for more info.
llvm-svn: 200553
|
|
|
|
| |
llvm-svn: 200537
|
|
|
|
|
|
| |
https://code.google.com/p/address-sanitizer/issues/detail?id=259
llvm-svn: 200468
|
|
|
|
|
|
| |
__attribute__((tls_model(initial-exec))))
llvm-svn: 200463
|
|
|
|
|
|
| |
causes trouble; few more debugging
llvm-svn: 200462
|
|
|
|
| |
llvm-svn: 200387
|
|
|
|
|
|
| |
interesting, actual usage will come later. See https://groups.google.com/forum/#!topic/address-sanitizer/BfwYD8HMxTM for background
llvm-svn: 200384
|
|
|
|
|
|
| |
actually written symbols from real snprintf call.
llvm-svn: 199899
|
|
|
|
|
|
|
|
|
|
| |
Intercept and sanitize arguments passed to printf functions in ASan and TSan
(don't do this in MSan for now). The checks are controlled by runtime flag
(off by default for now).
Patch http://llvm-reviews.chandlerc.com/D2480 by Yuri Gribov!
llvm-svn: 199729
|
|
|
|
|
|
| |
https://code.google.com/p/address-sanitizer/issues/detail?id=258
llvm-svn: 199723
|
|
|
|
|
|
| |
they are too optimistic due to https://code.google.com/p/address-sanitizer/issues/detail?id=258.
llvm-svn: 199715
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change adds ASAN_OPTIONS=start_deactivated=1 flag. When present, ASan will
start in "deactivated" mode, with no heap poisoning, no quarantine, no stack
trace gathering, and minimal redzones. All this features come back when
__asan_init is called for the constructor of an instrumented library.
The primary use case for this feature is Android. Code itself is not
Android-specific, and this patch includes a Linux test for it.
llvm-svn: 199377
|
|
|
|
| |
llvm-svn: 199370
|
|
|
|
| |
llvm-svn: 198873
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Per Nick Kledzik (http://llvm.org/bugs/show_bug.cgi?id=17976):
"""
For MacOSX, the labels in __cstring section should be 'L' labels, and the labels
in the __const section should be non-L or 'l' labels. The later ('l') will cause
the linker to remove the label in the final executable.
"""
, so we need to ensure that the globals emitted by ASan have appropriate labels.
llvm-svn: 198022
|
|
|
|
|
|
|
|
| |
http://llvm.org/bugs/show_bug.cgi?id=17976
by setting the correct linkage (as stated in the bug).
llvm-svn: 198018
|
|
|
|
|
|
|
|
|
| |
table, add a test.
This should fix http://llvm.org/bugs/show_bug.cgi?id=17976
Another test checking for the global variables' locations and prefixes on Darwin will be committed separately.
llvm-svn: 198017
|
|
|
|
| |
llvm-svn: 197901
|
|
|
|
|
|
| |
into a proper warning message
llvm-svn: 197899
|
|
|
|
| |
llvm-svn: 197670
|
|
|
|
| |
llvm-svn: 197372
|
|
|
|
|
|
| |
min_uar_stack_size_log/max_uar_stack_size_log
llvm-svn: 197370
|
|
|
|
| |
llvm-svn: 196569
|
|
|
|
| |
llvm-svn: 196491
|
|
|
|
|
|
| |
in cmake build (PR18144). This is a quick fix. Will need to fix the configure/make build properly
llvm-svn: 196490
|
|
|
|
| |
llvm-svn: 196374
|
|
|
|
|
|
| |
stack buffer overflows in another test
llvm-svn: 196373
|
|
|
|
|
|
|
| |
Expose a new interface function for debugging code built with sanitizer tools.
Add an ASan implementation.
llvm-svn: 196302
|
|
|
|
| |
llvm-svn: 195959
|
|
|
|
| |
llvm-svn: 195958
|
|
|
|
|
|
| |
to mmap() on OSX.
llvm-svn: 195443
|
|
|
|
|
|
| |
container-overflow
llvm-svn: 195352
|
|
|
|
| |
llvm-svn: 195250
|
|
|
|
| |
llvm-svn: 195243
|