summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests/asan_test.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a test for NSURL deallocation (issue 70)Alexander Potapenko2012-06-201-0/+7
| | | | llvm-svn: 158843
* [ASan] add interceptor for strncatAlexey Samsonov2012-06-081-0/+53
| | | | llvm-svn: 158198
* Remove file-type tags for .cc files in ASan run-time libraryAlexey Samsonov2012-06-041-1/+1
| | | | llvm-svn: 157927
* [asan] fix one test on 32-bit Mac 10.7; enable another test on MacKostya Serebryany2012-05-221-2/+3
| | | | llvm-svn: 157237
* [asan] fix asan issue #66 (correctly report type of the bug)Kostya Serebryany2012-04-231-2/+2
| | | | llvm-svn: 155344
* [asan] test for issue #66Kostya Serebryany2012-04-191-0/+10
| | | | llvm-svn: 155127
* Change the way ASan interacts with custom signal handlers.Alexander Potapenko2012-04-101-42/+0
| | | | | | | | 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. llvm-svn: 154390
* Use 'typename' instead of 'class' in template<> definitions supporting POD typesTimur Iskhodzhanov2012-04-091-6/+6
| | | | llvm-svn: 154314
* Make sure NSObjects are allocated in a way that is visible to ASan.Alexander Potapenko2012-03-301-0/+4
| | | | llvm-svn: 153762
* [ASan] interceptors for atoi/atol/atollAlexey Samsonov2012-03-291-2/+46
| | | | llvm-svn: 153637
* [ASan] add interceptor for strtolAlexey Samsonov2012-03-261-16/+31
| | | | llvm-svn: 153444
* [ASan] add interceptor for strtollAlexey Samsonov2012-03-241-0/+40
| | | | llvm-svn: 153376
* [ASan/tests] Make 'noinline' and a bunch of other stuff portableTimur Iskhodzhanov2012-03-231-51/+33
| | | | llvm-svn: 153333
* [ASan] replace '#if ... or ...' with '#if ... || ...'Timur Iskhodzhanov2012-03-231-2/+2
| | | | llvm-svn: 153332
* [asan] extend the test for long double bugKostya Serebryany2012-03-211-0/+2
| | | | llvm-svn: 153190
* [asan] Add a negative test for memcpy of long double.Evgeniy Stepanov2012-03-021-0/+8
| | | | llvm-svn: 151888
* Replace some #ifdef(s) with plain if(s).Evgeniy Stepanov2012-02-271-10/+4
| | | | llvm-svn: 151526
* AddressSanitizer: fix lintAlexey Samsonov2012-02-171-2/+2
| | | | llvm-svn: 150802
* [asan] Allocator tweaks for low memory systems.Evgeniy Stepanov2012-02-161-0/+10
| | | | llvm-svn: 150689
* [asan] Add a missing return.Evgeniy Stepanov2012-02-131-0/+1
| | | | | | | It is technically reachable on Android, where pthread_exit is not marked noreturn. llvm-svn: 150381
* [asan] better warning messages for double-free bugs (provide ↵Kostya Serebryany2012-02-081-1/+5
| | | | | | allocation/deallocation stack traces) llvm-svn: 150027
* [asan] make sure the AsanThread object is destroyed if pthread_exit is calledKostya Serebryany2012-02-071-0/+12
| | | | llvm-svn: 149940
* Disables testing memcpy() on Mac OS 10.7,Alexander Potapenko2012-02-011-0/+6
| | | | | | | where memcpy() in fact aliases memmove() and thus calling it with overlapping parameters is not an error. llvm-svn: 149491
* [asan] fix issue 35: don't let the optimizer to optimize the test code away.Kostya Serebryany2012-01-301-1/+1
| | | | llvm-svn: 149296
* [asan] add a test for __attribute__ no_address_safety_analysisKostya Serebryany2012-01-301-0/+11
| | | | llvm-svn: 149278
* Wrap CFStringCreateCopy to prevent copying constant CF strings.Alexander Potapenko2012-01-231-1/+1
| | | | | | This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=10 llvm-svn: 148696
* Add a test for CFStringCreateCopy.Alexander Potapenko2012-01-231-0/+10
| | | | | | | | | 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 llvm-svn: 148695
* [asan] workaround for bug http://llvm.org/bugs/show_bug.cgi?id=11763. Do not ↵Kostya Serebryany2012-01-171-2/+16
| | | | | | bark on memcpy(a, a, size). llvm-svn: 148318
* Revert commit 148304Alexey Samsonov2012-01-171-1/+1
| | | | llvm-svn: 148305
* AddressSanitizer: from this patch, ASan allocator returns false for ↵Alexey Samsonov2012-01-171-1/+1
| | | | | | __asan_get_ownership(NULL) and produce error reports for malloc_usable_size(NULL) and __asan_get_allocated_size(NULL) llvm-svn: 148304
* AddressSanitizer: add support for malloc_usable_size() functionAlexey Samsonov2012-01-171-0/+19
| | | | llvm-svn: 148287
* AddressSanitizer: fix recently introduced lint errors and broken test on Mac.Alexey Samsonov2012-01-161-1/+1
| | | | llvm-svn: 148235
* Disable posix_memalign test on Android.Evgeniy Stepanov2012-01-161-1/+3
| | | | llvm-svn: 148234
* [asan] remove objdump-based tests in favour of much simpler LLVM-ish testsKostya Serebryany2012-01-041-153/+0
| | | | llvm-svn: 147514
* [asan] enable memset/memcpy/memmove interceptors in asan-rt (in addition to ↵Kostya Serebryany2011-12-281-2/+0
| | | | | | those in the compiler module) llvm-svn: 147319
* [asan] better message for parameter overlap bugsKostya Serebryany2011-12-281-12/+15
| | | | llvm-svn: 147317
* [asan] interceptor for strcat. Patch by samsonov@google.comKostya Serebryany2011-12-281-0/+45
| | | | llvm-svn: 147316
* [asan] interceptor for memcmp. Patch by samsonov@google.comKostya Serebryany2011-12-281-0/+32
| | | | llvm-svn: 147315
* [asan] interceptors for strcasecmp and strncasecmp. patch by samsonov@google.comKostya Serebryany2011-12-281-48/+84
| | | | llvm-svn: 147304
* [asan] remove the test for cfree. 'man cfree' says: 'This function should ↵Kostya Serebryany2011-12-271-3/+0
| | | | | | never be used.' and this function is not found on many OSes we support. llvm-svn: 147301
* [asan] rely on __has_feature(address_sanitizer) instead of the ↵Kostya Serebryany2011-12-271-2/+7
| | | | | | ADDRESS_SANITIZER macro llvm-svn: 147297
* [asan] added a test to check that a global-buffer-overflow mentioned the ↵Kostya Serebryany2011-12-151-0/+7
| | | | | | module name; revert incorrect change in the test runner llvm-svn: 146701
* [asan] canonicalise the output for double-free and wrong-free. fixes asan ↵Kostya Serebryany2011-12-131-2/+3
| | | | | | issue 18 llvm-svn: 146501
* [asan] better test for use-after-return modeKostya Serebryany2011-12-081-9/+9
| | | | llvm-svn: 146203
* [asan] fix the error message for 16-byte accesses (it previously printed ↵Kostya Serebryany2011-12-071-0/+2
| | | | | | 'unknown-crash') llvm-svn: 146075
* [asan] GCD tests on Mac: prevent optimization and enable. Patch by ↵Kostya Serebryany2011-12-061-8/+8
| | | | | | glider@google.com llvm-svn: 145953
* AddressSanitizer run-time library. Not yet integrated with the compiler-rt ↵Kostya Serebryany2011-11-301-0/+1896
build system, but can be built using the old makefile. See details in README.txt llvm-svn: 145463
OpenPOWER on IntegriCloud