History log of /external/compiler-rt/lib/asan/tests/asan_test.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
31a5cd83406be83bcdb91df03e16816e3af8c615 14-Jun-2014 Dan Albert <danalbert@google.com> Exclude Android from the tests for valloc/pvalloc.

These functions are being removed from Android because they were removed
from POSIX 2004.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210962 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
/external/compiler-rt/lib/asan/tests/asan_test.cc
b37127085cbcc79f5f859bfab8e7204201c18287 05-Dec-2013 Kostya Serebryany <kcc@google.com> [asan] port r196375 to 3.4

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@196478 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
0f63831345e26b23d85a67e2dd96129f48eec477 16-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Remove CallocOverflow32 test from asan_test.

The same as with MSan, this test behavior depends on ASAN_OPTIONS, and we've
got a lit_test that covers this.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192777 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
05fa3808f6ac96023cdf583a1a1b7220e5b451b8 16-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Split ASan unit tests into two different binaries:

(1) instrumented, i.e. compiled and linked with -fsanitize=address
(2) not instrumented, compiled w/o -fsanitize=address and linked with ASan runtime statically.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190788 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
f7f2e431263cc0aa321218ce8978b289187a39a3 06-Sep-2013 Alexey Samsonov <samsonov@google.com> Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ATTRIBUTE_NO_SANITIZE_ADDRESS

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190136 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
9150f397ba4c5478275d72665ea3e53a84c7076a 06-Sep-2013 Kostya Serebryany <kcc@google.com> [sanitizer] make the allocator crash instead of returning 0 on huge size (controlled by the allocator_may_return_null flag)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190127 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
2ec879ebd7261c9182d4fdee95fb615439dda67d 18-Jul-2013 Alexey Samsonov <samsonov@google.com> [ASan] Fix leaks in ASan tests found by LSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186577 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
722f2e6a6125a0d5c9d453278b0f292e3410124d 06-Jun-2013 Alexey Samsonov <samsonov@google.com> [ASan] make pthread_getschedparam test more robust

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
87bd39a72b65f1ef5c5a33fc8ba3aebae998903e 04-Jun-2013 Alexey Samsonov <samsonov@google.com> Call __asan_free_hook() before marking the chunk quarantinned

Summary:
With this change, the user may safely call __asan_get_ownership()
from malloc/free hooks and assume it would return "true". If there is a
realloc/free race, free hook might be called twice, but I think it's acceptable,
as it's a data race and would later be reported anyway.

This change also fixes a bug when failing realloc incorrectly marked the
original memory as "quarantinned".

Reviewers: timurrrr, kcc, samsonov

Reviewed By: samsonov

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D913

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183220 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
30e970f769ccf11e61e472c6f8b22f8e866c592f 22-May-2013 Kostya Serebryany <kcc@google.com> [asan] workaround for asan bug 189 (swapcontext followed by throw gets OOM kill). Also, disable swapcontext_test on non-x86. Fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182456 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
56d3472104dd9fec6578e02f4895f3254e038e8e 21-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept pthread_getschedparam.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182353 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
41d69f4fd5454d5bf2614cbb3e8ed77a935c880b 20-May-2013 Timur Iskhodzhanov <timurrrr@google.com> Fix realloc'ing freed/invalid pointers

See https://code.google.com/p/address-sanitizer/issues/detail?id=187 for the details

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182255 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
9277b1ff831ad4e3979e7a6203e838d6d62266c6 16-May-2013 Kostya Serebryany <kcc@google.com> [asan] fix ShadowGapTest on PowerPC64

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
0bdc46c7ee03e8c4e4da7c5ac43edac237aa53e2 15-May-2013 Kostya Serebryany <kcc@google.com> [asan] disable BuiltinLongJmpTest on PowerPC

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181890 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
f931da85ce8668751628ded926ecad013c5d6f1a 15-May-2013 Kostya Serebryany <kcc@google.com> [asan] fix powerpc build and one test; fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181881 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
8db82e151f4dc3de33530adce370a3d86be54cf9 23-Apr-2013 Alexander Potapenko <glider@google.com> [ASan] Disable AddressSanitizer.AllocDeallocMismatch on Darwin.
See https://code.google.com/p/address-sanitizer/issues/detail?id=131.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180093 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
50f3daa00d3da0a80c8798a3e977705e96ec106f 22-Mar-2013 Kostya Serebryany <kcc@google.com> [asan] Change the way we report the alloca frame on stack-buff-overflow.

Before: the function name was stored by the compiler as a constant string
and the run-time was printing it.
Now: the PC is stored instead and the run-time prints the full symbolized frame.
This adds a couple of instructions into every function with non-empty stack frame,
but also reduces the binary size because we store less strings (I saw 2% size reduction).
This change bumps the asan ABI version to v3.

compiler-rt part, llvm part will follow.

Example of report (now):
==31711==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fffa77cf1c5 at pc 0x41feb0 bp 0x7fffa77cefb0 sp 0x7fffa77cefa8
READ of size 1 at 0x7fffa77cf1c5 thread T0
#0 0x41feaf in Frame0(int, char*, char*, char*) stack-oob-frames.cc:20
#1 0x41f7ff in Frame1(int, char*, char*) stack-oob-frames.cc:24
#2 0x41f477 in Frame2(int, char*) stack-oob-frames.cc:28
#3 0x41f194 in Frame3(int) stack-oob-frames.cc:32
#4 0x41eee0 in main stack-oob-frames.cc:38
#5 0x7f0c5566f76c (/lib/x86_64-linux-gnu/libc.so.6+0x2176c)
#6 0x41eb1c (/usr/local/google/kcc/llvm_cmake/a.out+0x41eb1c)
Address 0x7fffa77cf1c5 is located in stack of thread T0 at offset 293 in frame
#0 0x41f87f in Frame0(int, char*, char*, char*) stack-oob-frames.cc:12 <<<<<<<<<<<<<< this is new
This frame has 6 object(s):
[32, 36) 'frame.addr'
[96, 104) 'a.addr'
[160, 168) 'b.addr'
[224, 232) 'c.addr'
[288, 292) 's'
[352, 360) 'd'




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177723 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
7dd282c0c7d3ca32ee94092289bd802e16fe9867 22-Mar-2013 Alexey Samsonov <samsonov@google.com> [ASan] Fix an error on invalid deallocation in ASan allocator. When ASan checks if memory freed by user was indeed previously allocated, it first does an atomic write to presumed location of chunk header. This is wrong, as if the free is invalid, we may overwrite some valuable data (like other fields of the chunk header). Fix this by using atomic_compare_exchange instead.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177710 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
00545a3625aaa765eef2da9b3e197a0e00e94550 18-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Switch to allocator2 on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
d39a34ee33aae73fdde065f784bdc19f67b91ae2 14-Mar-2013 Kostya Serebryany <kcc@google.com> [asan] remove one redundant malloc stress test, unify the usage of ASAN_LOW_MEMORY macro in tests, slightly reduce test memory usage (all to make 32-bit runs consume less RAM)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177069 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
d4de2a1a7b15d0ed1a303b1604894ae82d5e8748 01-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Revert r176255, r176264.

New allocator has 1.5x memory overhead of the old one.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176340 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
df4f6de48d1efe0cf6ed0a7b867e86b45985e85a 28-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Lower memory usage in LargeMallocTest on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176264 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
1b057b20db71ec6cc2bac460c8b2848f0889d47d 26-Feb-2013 Kostya Serebryany <kcc@google.com> [asan] fix the output for range accesses (memset, etc); improve the tests; more strict checking in memcmp

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176078 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
4c3e573425e584867e12c3f5d3df524c20b06509 20-Feb-2013 Alexey Samsonov <samsonov@google.com> [ASan] revert part of r175631 that looks like accidental commit

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175655 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
7c2a3bbabc7d3bcc66ad7a076bed9a4b86a3626d 20-Feb-2013 Alexander Potapenko <glider@google.com> [ASan] Delete asan/dynamic dir and temporarily move the interposers declarations to asan_intercepted_functions.h
Now that we have only one dependency on asan_intercepted_functions.h, we can unite that code with the interceptors declarations in asan_interceptors.cc and get rid of asan_intercepted_functions.h


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175631 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
7f4df1a0e1e1b2ace94d4d78b03c222887dbb00c 19-Feb-2013 Kostya Serebryany <kcc@google.com> [asan] don't run the long double test if long double is the same as double

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175514 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
366984e3aa286f7b4fb45f5c9e703f2768c407ed 19-Feb-2013 Kostya Serebryany <kcc@google.com> [asan] instrument memory accesses with unusual sizes
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.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
5d48617936d6415f2037a5e1b9d57f9077ee92ef 07-Feb-2013 Alexander Potapenko <glider@google.com> [ASan] Enable alloc_dealloc_mismatch by default on Darwin.
Enable AddressSanitizer.AllocDeallocMismatch tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174628 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
73700ac2a7ced591261ad11199d9d4a7112304bb 01-Feb-2013 Alexey Samsonov <samsonov@google.com> [ASan] remove debug output from the test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174188 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
a180078ee0120c049f9fb495f930053f80f105aa 29-Jan-2013 Alexey Samsonov <samsonov@google.com> ASan: fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173795 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
d91699339fd7e022aef0eaa8f401af0f8942068b 29-Jan-2013 Alexey Samsonov <samsonov@google.com> [ASan] Do allocate memory even for zero-size allocation requests. Explain why we have to do this in comments.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173776 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
a3ab1a7da70a5ef111257ba8887920c1fdcd7be5 28-Jan-2013 Alexey Samsonov <samsonov@google.com> [ASan] fix a bug in allocator-v2 which could lead to SEGV on realloc(malloc(0), 4)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173681 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
a3b0e5e4f9f48b2ed0baee10c0236eda7c21c660 23-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] simplify the code that poisons global redzones, add some more tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173251 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
8fb1264341c079eda3e10480fb807a0f52bb8b19 22-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] split asan_test.cc even more

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
6cbfae439b81221d2250ffe0331958f130259755 22-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] split asan_test.cc more

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173130 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
38db30686c5962f8b5c877e29c6669d72198d42b 22-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] split asan_test.cc to speedup parallel build (most important if building with a debug clang, which takes a couple of minutes on this large file with templates). More splits to follow

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173129 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
44997c354c7cdb5257d9a41c837b12a6133f2d6b 21-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] fix linux build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173049 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
8c745fc58d8aca66db1170b1cdbbc0a7743c20a0 21-Jan-2013 Alexander Potapenko <glider@google.com> [ASan] Move Mac-specific tests to asan_mac_test.cc



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173048 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
ca2849c2819b5c7a8771a1e8bc449cf8f5ef6527 18-Jan-2013 Alexey Samsonov <samsonov@google.com> [ASan] fixes for Android build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172800 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c20b321d49f0eff60f1394d56e623d8ca94f24d7 18-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] reapply r172719, r172721-172723, r172725, and also fix the warning on Mac.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
29b37ea8907bc99bf86fab89bf8dc93a520ebac4 17-Jan-2013 Jakob Stoklund Olesen <stoklund@2pi.dk> Revert r172719, r172721-172723, and r172725.

The r172719 patch broke the build on Mac, the others depended on it.

compiler-rt/lib/asan/asan_interceptors.cc:78:13: error: unused function
'SetThreadName' [-Werror,-Wunused-function]
static void SetThreadName(const char *name) {

Orignal headlines:

[asan] attempting to fix the Mac build
[asan] restructure read/pread/pread64 tests
[sanitizer] move write/pwrite/pwrite64 interceptors to common
[msan] start using common interceptors in msan
[tsan] move prctl interceptor from asan to common_interceptors thus enabling it for tsan too

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172763 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c39ea447d6632314d6e0198b3559830298df5155 17-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] restructure read/pread/pread64 tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172723 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
48ddbef1d051875b2d0b204e8d78300b58d80a85 14-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> 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.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172421 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
29e09223b9d4f53f1be528d6a572b66034c26611 14-Jan-2013 Alexey Samsonov <samsonov@google.com> ASan: Disable alloc/dealloc mismatch test on Android. It's not supposed to work there

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172398 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
8f0e311767b783db4a15139dddfe7a924fa3724e 14-Jan-2013 Alexey Samsonov <samsonov@google.com> ASan: Disable alloc/dealloc-mismatch checker on Mac for now (it produces weird false positives on googletest)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172394 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
b8a59a0e030d0aacf4df1fe8f7fb4e6f82bab654 10-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] don't fail the test if prctl(PR_SET_NAME) is not supported

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172059 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
b3ef8a4521954d1ca5e728446c389e1f8cc01fc4 10-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] asan_allocator2: do less work under the quarantine lock; make the strcasecmp test more resistant to the contents of unaddressable memory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172048 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
7125bb35fb2351040534a194c9c1aa8cb71cfb19 10-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] better protect the tests from memset/memcpy inlining, explicitly include unistd.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172045 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
13ddcf695e10bed51faceff49469e1c83d64b51c 29-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] make LargeOOBInMemset test resistant to clever compiler optimizations

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171223 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c0d37b35439897aea821319a669832b16848cb65 28-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] fix a build warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171200 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
eb2809311c94b73c269ccef8d68ae368642e5754 28-Dec-2012 Kostya Serebryany <kcc@google.com> [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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171198 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
709a33e1cf20eb7f00653fe32dc07714b3f2c633 26-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] asan_allocator2: do not align the requested size to the redzone size (saves a bit more memory)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171111 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c35314a119aba6d5e7fa0a06024f9cb1c49e6f5f 26-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] asan_allocator2: implement adaptive redzones. Now with asan_allocator2 allocations <= 48 bytes have 16 byte redzone, allocations of 48-96 bytes -- have 32 bytes redzone, etc (max redzone is 2048). If ASAN_OPTIONS=redzone=n is set, it changes the minimal redzone size

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171107 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
f1877cf0a314f407ac535ab1606fdac4f9b05026 25-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add a test for right OOB with special large sizes. Fix this test in asan_allocator2. More test tweaking for allocator2

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
fe6d91684bcda766593800f6307233f1a33d31f6 21-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add a flag alloc_dealloc_mismatch (off by default for now) which finds malloc/delete, new/free, new/delete[], etc mismatches

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170869 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
be9796d7148b89f20ca04ffdf3fa98ac84bd1141 21-Dec-2012 Richard Relph <Richard.Relph@amd.com> Clean up some warnings that become errors. Seen in Xcode.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170843 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c311105fd64219bb96b6467c3707ebda355be87b 20-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add memalign tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170687 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
0b770b48e4ae053a7d0610e1c682405afba58fda 20-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add ASAN_PCRE_DOTALL to two new multi-line regexps

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170677 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
37a14418e494d3dfb27cd6bddcd9855df2c80ff5 19-Dec-2012 Alexander Potapenko <glider@google.com> [ASan] Change the boilerplate check in the libdispatch tests to fix them.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170531 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c333dffb81f1d85483d657c254c17f636ab192c5 13-Dec-2012 Alexey Samsonov <samsonov@google.com> [ASan] more macro for conditional interception of pread functions

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170112 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
ada9ba14325df9e206f454c50bd1b55ea9ecdbb9 12-Dec-2012 Alexander Potapenko <glider@google.com> [ASan] Fix test expectations for strcat/strncat.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169987 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
ef8dfd8dffbf4385baf24e5aaea6c2cc7c6c936a 12-Dec-2012 Alexander Potapenko <glider@google.com> [ASan] Enhance OOB tests to check for access type (read or write).



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169974 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
6e6a7cfe0aac66eeefdf36dec78d7c536bff3c90 12-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] fix android build and lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169968 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
8530e2b953f0b34ecd267a6aba5f155d5c08c5c8 12-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add sanitizer_common/sanitizer_common_interceptors.h with pread/pread64/read interceptors. Use it in asan. Add asan tests for pread/etc. Add FIXME to tsan/msan interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169966 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
a390ece58317a25ef26866cef6753df4b06a3e65 11-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] make ThreadNamesTest more flexible

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169822 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
67f5c81639ab0ba0d7d9048b7206b424b577c90b 07-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] fix lint, remove debug prints

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169620 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
716e2f25123bf9b20fbc6b582803a3929b78b96d 07-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] intercept prctl(PR_SET_NAME) and set the thread name. Output the thread names (if non-empty) in asan reports

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169601 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
5a15541fc2bbe46a5ce0cd802b5c1055f2ffb14e 05-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] drop the extension from asan tests (as the extension may be different)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169392 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
2697687059e64a4f1319dc23a0a3ca59982d53f6 03-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] in asan tests, check all return values of pthread_create/pthread_join. Also add the ASAN_AVOID_EXPENSIVE_TESTS macro to guard the test that creates too many threads

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169118 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
badab16503e025326a46a45da8faa6fd20e5fc3d 30-Nov-2012 Kostya Serebryany <kcc@google.com> [asan] make asan_test.cc more gcc-friendly

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168992 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
b989143d0be56496e8d5fcf75969af35a058792a 29-Nov-2012 Kostya Serebryany <kcc@google.com> [asan] disable BuiltinLongJmpTest on Android

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c3a5c173f228cbb15e332e6bbc17c76ebd55d7a8 29-Nov-2012 Kostya Serebryany <kcc@google.com> [asan] enable BuiltinLongJmpTest

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168863 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
d3ca78fdb296d2a51fc224da673ebfff508acf44 28-Nov-2012 Kostya Serebryany <kcc@google.com> [asan] add DISABLED_BuiltinLongJmpTest

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168793 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
5af39e50366f1aacbebc284f572f08ad1ad07357 21-Nov-2012 Kostya Serebryany <kcc@google.com> [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. Instead, define our own SANITIZER_WORDSIZE

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168424 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
de55be3899b994731ba2d9e168281d608dab3048 17-Oct-2012 Alexey Samsonov <samsonov@google.com> [ASan] unit tests: Move main() to a separate file. Fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166104 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
fa7e95da75c30b7111224e68cb4405357bdc0f4b 17-Oct-2012 Alexey Samsonov <samsonov@google.com> [ASan] Fix strchr/index tests for users who have 'char* strchr(char*,int)' instead of 'char* strchr(const char*, int)'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166101 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
1cffef3e39cad4eb33606afbebac78d6637361ac 17-Oct-2012 Alexey Samsonov <samsonov@google.com> [ASan] don't use attribute no_address_safety_analysis if it's unknown to compiler

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166099 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
ca9b5dd9922fb7f6e0ca06dbba7db7398b8997f1 15-Oct-2012 Kostya Serebryany <kcc@google.com> [asan] fix more tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165934 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
7da8503a90c7f84787aa1ba978e2223893fa7727 28-Sep-2012 Alexey Samsonov <samsonov@google.com> [ASan] Fix unit test headers. Add an option to change substitute asan_test_config.h file

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
b0ddf227b25388ad836e560c00f0aec84026b0e5 19-Sep-2012 Alexey Samsonov <samsonov@google.com> [ASan] cleanup: fix headers and lint warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164205 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
58b017bb286a8f4413a9348d2c87c52de38cff6d 18-Sep-2012 Alexander Potapenko <glider@google.com> Intercept signal() and sigaction() within the dynamic runtime on Mac.
Add a test that ensures that ASan does not allow to override the signal handlers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164118 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
78103db90782ca30593d7b1066b77792ca2f3459 14-Sep-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Remove some debugging code.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163881 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
ca2cdd989076d091d8c4d4c277f8b47d9b5903ad 12-Sep-2012 Alexander Potapenko <glider@google.com> Give more accurate malloc statistics to malloc_zone_statistics().

Fix a warning in macros instantiation.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163716 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
76e842845c927e92c2c21c41ac51e364fa17528c 12-Sep-2012 Alexey Samsonov <samsonov@google.com> [ASan] fix compiler warnings for unit test on Android

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163704 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
e0e9eea99d7a81a15c4bb15ff2e5ebd92b50817b 06-Sep-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Use __ANDROID__ guard in asan_test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163313 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
0aa04b3f432bc55e7c116d5280685ee3f243be8e 14-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] better diagnostics for mmap failure

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161874 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
37b3fcd6fdec5740fe51fc1315c5d4d54313de98 02-Aug-2012 Alexander Potapenko <glider@google.com> Make strcat() and strncat() more standard-compliant (check for invalid parameters even if zero bytes is copied, more accurate overlap check)
Fix the tests that were relying on the incorrect behavior.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161167 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
75b19ebf25af204cf209d108997272822241d6da 23-Jul-2012 Alexander Potapenko <glider@google.com> 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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160630 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
63201b127e21d6fbfb6de62d0e44a5de01288153 23-Jul-2012 Alexey Samsonov <samsonov@google.com> [ASan] minor fixes to silence cmake build warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160624 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
f4e8fc675ab52d0b3022847764a70ed7f03817bd 21-Jun-2012 Alexander Potapenko <glider@google.com> Small lint fix.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158922 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
43d03f3775677ca8e4727d49d1256de014351b95 21-Jun-2012 Alexander Potapenko <glider@google.com> Add a test for issue 81 -- AddressSanitizerMac.DISABLED_CFAllocatorDefaultDoubleFree_ChildPhread


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158921 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
effd6bf516b7109460647253aa1a62046ca9bb7a 21-Jun-2012 Alexander Potapenko <glider@google.com> Enable AddressSanitizerMac.CFAllocatorDefaultDoubleFree and AddressSanitizerMac.CFAllocatorMallocDoubleFree, which now work fine.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158886 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
e205a9daec9ec4afed956cf5455889725b9192fb 21-Jun-2012 Alexander Potapenko <glider@google.com> Actually intercept free() to ensure that the deallocations caused by other functions directly calling it are routed to our allocator.
For the allocations that do not belong to any malloc zone check whether they're padded with a pointer to ASan's CFAllocator. If so, free the original (unpadded) pointer.
This should fix AddressSanitizerMac.NSURLDeallocation and issue 70.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158863 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
df42b619de6f7cbf23a68d91a924cfb44b9fd201 20-Jun-2012 Alexander Potapenko <glider@google.com> Add a test for NSURL deallocation (issue 70)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158843 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c1bdd5adca453f2fae238a4c53ade35ae60b85da 08-Jun-2012 Alexey Samsonov <samsonov@google.com> [ASan] add interceptor for strncat

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158198 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
e5f5895bda30f374b0b51412fd4d837fa59aed66 04-Jun-2012 Alexey Samsonov <samsonov@google.com> Remove file-type tags for .cc files in ASan run-time library

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157927 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
e4d141dbbaf5185f332a185c22308340657d243e 22-May-2012 Kostya Serebryany <kcc@google.com> [asan] fix one test on 32-bit Mac 10.7; enable another test on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157237 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
0796393f2088e3b75c4110934451160eeb037fab 23-Apr-2012 Kostya Serebryany <kcc@google.com> [asan] fix asan issue #66 (correctly report type of the bug)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@155344 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
4eaa17848ed02cae465f10aa5fe095e42dbf0d61 19-Apr-2012 Kostya Serebryany <kcc@google.com> [asan] test for issue #66

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@155127 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
73ac687e4bf9914dc7507ed18ef38cf326ef2175 10-Apr-2012 Alexander Potapenko <glider@google.com> Change the way ASan interacts with custom signal handlers.
From now on we allow the clients to override signal handlers set by ASan, but print a warning in such a case.

Remove the tests for signal() and sigaction(), because they made little sense even without this change.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154390 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
2dcf44991a8ec1ca7c8051eb27c5ff158530bdc3 09-Apr-2012 Timur Iskhodzhanov <timurrrr@google.com> Use 'typename' instead of 'class' in template<> definitions supporting POD types

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154314 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
8c9ccc655405dd8a41264fe7eb5f902700077d1a 30-Mar-2012 Alexander Potapenko <glider@google.com> Make sure NSObjects are allocated in a way that is visible to ASan.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153762 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
847f932ab0405757946433b81d3b2952b306b0bc 29-Mar-2012 Alexey Samsonov <samsonov@google.com> [ASan] interceptors for atoi/atol/atoll

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153637 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
8f6a77f3f59ebc5f40f235e51836f468f30b9110 26-Mar-2012 Alexey Samsonov <samsonov@google.com> [ASan] add interceptor for strtol

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153444 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
84ba324b94d22a69acc823e845f9718fd2984e44 24-Mar-2012 Alexey Samsonov <samsonov@google.com> [ASan] add interceptor for strtoll

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153376 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
938106753364d96cedc11cbdc35a15030fb44d0c 23-Mar-2012 Timur Iskhodzhanov <timurrrr@google.com> [ASan/tests] Make 'noinline' and a bunch of other stuff portable

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153333 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
f6607d097833cd53460735c1a5a2fd52b97613eb 23-Mar-2012 Timur Iskhodzhanov <timurrrr@google.com> [ASan] replace '#if ... or ...' with '#if ... || ...'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153332 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
9b90e95d4dc59c6d97ed73b2470f5e21e7b346d5 21-Mar-2012 Kostya Serebryany <kcc@google.com> [asan] extend the test for long double bug

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153190 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
5b6eab9dc5572a66e3af54ab087255ffa4dd5185 02-Mar-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Add a negative test for memcpy of long double.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151888 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
8ae44ac678644265ba82a1b5696a402c9301a85c 27-Feb-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Replace some #ifdef(s) with plain if(s).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151526 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
6a3e6fd72e1e2322d28ced9d9c2adbd720e7fabf 17-Feb-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150802 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
788e1d704436065beb514fdde86070f61d0394ed 16-Feb-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Allocator tweaks for low memory systems.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150689 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
7b7b55e99166511ce1e66bf6b79c46ae4aa60d17 13-Feb-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Add a missing return.

It is technically reachable on Android, where pthread_exit is not
marked noreturn.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150381 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
27f4932a8a0845303b33d69ddce096c445002e60 08-Feb-2012 Kostya Serebryany <kcc@google.com> [asan] better warning messages for double-free bugs (provide allocation/deallocation stack traces)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150027 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
f58f998066db0231e521169d2f50af439ceecb49 07-Feb-2012 Kostya Serebryany <kcc@google.com> [asan] make sure the AsanThread object is destroyed if pthread_exit is called

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149940 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
0503ce8824393174c17acb26d62551f18a0fd82a 01-Feb-2012 Alexander Potapenko <glider@google.com> Disables testing memcpy() on Mac OS 10.7,
where memcpy() in fact aliases memmove() and thus calling it with
overlapping parameters is not an error.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149491 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
d271c926e0fa1b8fa9e4ca13f49f7d3ee07a27bc 31-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] fix issue 35: don't let the optimizer to optimize the test code away.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149296 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
3be19f4fa3519e358fd41a5feda82c39a22ef107 30-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] add a test for __attribute__ no_address_safety_analysis

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149278 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
431e51782d62d1257348e41e24da6b544fe70507 23-Jan-2012 Alexander Potapenko <glider@google.com> Wrap CFStringCreateCopy to prevent copying constant CF strings.
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=10



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
fb506cb56c7f47a9f0aa515d6f5ca3ed6533422f 23-Jan-2012 Alexander Potapenko <glider@google.com> Add a test for CFStringCreateCopy.
Normally this function should not create copies of constant strings, but it does when the default CFAllocator
is replaced (e.g. under AddressSanitizer)

This test is related to http://code.google.com/p/address-sanitizer/issues/detail?id=10


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148695 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c655cfa8dc0fdf5b521e565f6cbdbf7981fba1b2 17-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] workaround for bug http://llvm.org/bugs/show_bug.cgi?id=11763. Do not bark on memcpy(a, a, size).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148318 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
6677def188c17ac63866146d72c4b1b652649fc6 17-Jan-2012 Alexey Samsonov <samsonov@google.com> Revert commit 148304

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148305 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c7cdcdacd485056c12efc368f7ea2a6db64831e8 17-Jan-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: from this patch, ASan allocator returns false for __asan_get_ownership(NULL) and produce error reports for malloc_usable_size(NULL) and __asan_get_allocated_size(NULL)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148304 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
4fd95f141f78906570c15a8a3b4cf0a7b50a201d 17-Jan-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: add support for malloc_usable_size() function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148287 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
4dd8ba8238b1b698953628affe6e5b2edf3b3e3f 16-Jan-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: fix recently introduced lint errors and broken test on Mac.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148235 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
7274eafceb832e1088f30b71652992787ba8c456 16-Jan-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Disable posix_memalign test on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148234 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
609dc28bb32bdba7533c191bcb88f358d0f42187 04-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] remove objdump-based tests in favour of much simpler LLVM-ish tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147514 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
0ffe35c08475334243f760128c5b4b987e5a274b 28-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] enable memset/memcpy/memmove interceptors in asan-rt (in addition to those in the compiler module)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147319 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c5e72a3b7c60f1b2d9d9be3a07d397d5b5f872be 28-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] better message for parameter overlap bugs

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
0985ca240812ac5519168a6aecbccf4c513ae243 28-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] interceptor for strcat. Patch by samsonov@google.com

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147316 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
52fb238ccc45781e4e1d097ae1ee748c898b5825 28-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] interceptor for memcmp. Patch by samsonov@google.com

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147315 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
af0f01d77c2a495f023ffbf6cce85b33bbd2306d 28-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] interceptors for strcasecmp and strncasecmp. patch by samsonov@google.com

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147304 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
8547f6c368c964f0c3e60cf23383a42e5ba806cb 28-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] remove the test for cfree. 'man cfree' says: 'This function should never be used.' and this function is not found on many OSes we support.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147301 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
13ebae606b526399771e9cca1d6a9d24458ad0f1 27-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] rely on __has_feature(address_sanitizer) instead of the ADDRESS_SANITIZER macro

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147297 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c37ca572876a585b6a910f14a85cc7ba7fc22f20 15-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] added a test to check that a global-buffer-overflow mentioned the module name; revert incorrect change in the test runner

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146701 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
c16201337a4bb974093ff75aa45682739a331d05 13-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] canonicalise the output for double-free and wrong-free. fixes asan issue 18

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146501 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
918b18a849cea679bff31a4e0dfb3745302c240a 09-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] better test for use-after-return mode

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146203 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
acd5c617b219e0f059620c2a3928d2cc821d4534 07-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] fix the error message for 16-byte accesses (it previously printed 'unknown-crash')

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146075 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
96bdefaabcd9ed4cb3401f5fbfb51fd964e03f5a 06-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] GCD tests on Mac: prevent optimization and enable. Patch by glider@google.com

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145953 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc
1e172b4bdec57329bf904f063a29f99cddf2d85f 30-Nov-2011 Kostya Serebryany <kcc@google.com> AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/tests/asan_test.cc