summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/lit_tests
Commit message (Collapse)AuthorAgeFilesLines
* Move ASan lit-tests under test/asanAlexey Samsonov2014-02-14151-4458/+0
| | | | llvm-svn: 201413
* Move shared configs for lit test suites to test/ and unittests/ directoriesAlexey Samsonov2014-02-142-2/+2
| | | | llvm-svn: 201399
* [asan] Android test runner for ASan lit tests.Evgeniy Stepanov2014-02-147-43/+166
| | | | | | | | | | | | | 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
* [asan] Disable 1 test on Android.Evgeniy Stepanov2014-02-131-0/+4
| | | | llvm-svn: 201332
* [asan] Remove extra clone() arguments in test.Evgeniy Stepanov2014-02-131-1/+1
| | | | | | Android headers define clone() as a 4-argument function without ellipsis. llvm-svn: 201331
* [asan] Fix null_deref test with zero base shadow.Evgeniy Stepanov2014-02-131-1/+1
| | | | | | | | | | 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
* Remove a check from strerror_r test.Evgeniy Stepanov2014-02-131-1/+2
| | | | | | | | | 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
* [asan] Avoid deadlock in CovDump.Evgeniy Stepanov2014-02-131-0/+3
| | | | llvm-svn: 201304
* [sanitizer] Fix wait4 interceptor on Android.Evgeniy Stepanov2014-02-122-8/+31
| | | | | | It's called __wait4 there. llvm-svn: 201235
* [asan] fix testing on MacKostya Serebryany2014-02-061-0/+2
| | | | llvm-svn: 200910
* [asan] introduce two functions that will allow implementations of C++ ↵Kostya Serebryany2014-02-062-0/+51
| | | | | | garbage colection to work with asan's fake stack llvm-svn: 200908
* [ASan] Use replace_str=0 and replace_intrin=0 in printf-{2,4}.c to avoid ↵Alexander Potapenko2014-02-042-6/+10
| | | | | | | | triggering a buffer overflow in strlen and memcpy. This change fixes printf-2.c and printf-4.c under OSX. llvm-svn: 200756
* [ASan] Fix printf-5.c on OSX: fix a compiler warning, avoid intercepting ↵Alexander Potapenko2014-02-041-4/+5
| | | | | | memcpy (which triggers the error report before printf does). llvm-svn: 200751
* [sanitizer] Resubmit r200683: disable -ffunction-sections.Evgeniy Stepanov2014-02-031-0/+39
| | | | llvm-svn: 200686
* Revert r200683.Evgeniy Stepanov2014-02-031-39/+0
| | | | | | -fno-function-sections is broken in Clang. llvm-svn: 200684
* [sanitizer] Disable -ffunction-sections.Evgeniy Stepanov2014-02-031-0/+39
| | | | | | | 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
* [ASan] Add a failing test that demonstrates that ASan currently breaks dead ↵Alexander Potapenko2014-01-311-0/+13
| | | | | | | | code stripping on Linux. See https://code.google.com/p/address-sanitizer/issues/detail?id=260 for more info. llvm-svn: 200553
* [ASan] Run LSan for ASan unit tests only on 64-bit LinuxAlexey Samsonov2014-01-311-1/+2
| | | | llvm-svn: 200537
* [sanitizer] Fix typo that breaks shmctl() interceptor.Evgeniy Stepanov2014-01-301-0/+6
| | | | | | https://code.google.com/p/address-sanitizer/issues/detail?id=259 llvm-svn: 200468
* [asan] re-enable __tls_get_addr interceptor with a proper fix (use ↵Kostya Serebryany2014-01-301-2/+0
| | | | | | __attribute__((tls_model(initial-exec)))) llvm-svn: 200463
* [asan] disable __tls_get_addr interceptor while I am investigating why it ↵Kostya Serebryany2014-01-301-1/+6
| | | | | | causes trouble; few more debugging llvm-svn: 200462
* [asan] increase the buffer size for printing asan legend, add a test for legendKostya Serebryany2014-01-291-0/+3
| | | | llvm-svn: 200387
* [asan] experimental intercetor for __tls_get_addr. So far it does nothing ↵Kostya Serebryany2014-01-291-0/+102
| | | | | | interesting, actual usage will come later. See https://groups.google.com/forum/#!topic/address-sanitizer/BfwYD8HMxTM for background llvm-svn: 200384
* [Sanitizer] Fix false positive in snprintf interceptor - take the number of ↵Alexey Samsonov2014-01-231-2/+7
| | | | | | actually written symbols from real snprintf call. llvm-svn: 199899
* Sanitize printf functions.Alexey Samsonov2014-01-215-0/+98
| | | | | | | | | | 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
* [asan] one more test for ↵Kostya Serebryany2014-01-211-0/+75
| | | | | | https://code.google.com/p/address-sanitizer/issues/detail?id=258 llvm-svn: 199723
* [asan] relax the checks inside __sanitizer_annotate_contiguous_container: ↵Kostya Serebryany2014-01-211-0/+27
| | | | | | they are too optimistic due to https://code.google.com/p/address-sanitizer/issues/detail?id=258. llvm-svn: 199715
* [asan] Implement delayed activation of AddressSanitizerEvgeniy Stepanov2014-01-162-0/+65
| | | | | | | | | | | | 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
* [asan] Nuke ASAN_FLEXIBLE_MAPPING_AND_OFFSET.Evgeniy Stepanov2014-01-163-68/+0
| | | | llvm-svn: 199370
* [asan] Implement max_redzone runtime flag.Evgeniy Stepanov2014-01-091-0/+26
| | | | llvm-svn: 198873
* [ASan] Add a test for __asan_gen_ globals labels on Darwin.Alexander Potapenko2013-12-251-0/+14
| | | | | | | | | | | | | 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
* [ASan] Fix the test for __asan_gen_ globals and actually fix ↵Alexander Potapenko2013-12-251-1/+2
| | | | | | | | http://llvm.org/bugs/show_bug.cgi?id=17976 by setting the correct linkage (as stated in the bug). llvm-svn: 198018
* [ASan] Make sure none of the __asan_gen_ global strings end up in the symbol ↵Alexander Potapenko2013-12-251-0/+7
| | | | | | | | | 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
* [asan] clean up at the end of the shmget/shmctl testKostya Serebryany2013-12-231-0/+1
| | | | llvm-svn: 197901
* [asan] convert a CHECK failure in __sanitizer_annotate_contiguous_container ↵Kostya Serebryany2013-12-231-4/+26
| | | | | | into a proper warning message llvm-svn: 197899
* [ASan] Get rid of __asan_symbolize functionAlexey Samsonov2013-12-193-19/+0
| | | | llvm-svn: 197670
* [asan] fix the test so that it works even if stack size is unlimited by defaultKostya Serebryany2013-12-161-1/+1
| | | | llvm-svn: 197372
* [asan] replace the flag uar_stack_size_log with two flags ↵Kostya Serebryany2013-12-161-3/+3
| | | | | | min_uar_stack_size_log/max_uar_stack_size_log llvm-svn: 197370
* [asan] rewrite asan's stack frame layout, compiler-rt partKostya Serebryany2013-12-063-21/+20
| | | | llvm-svn: 196569
* [asan] revert files which I accidentally commited in r196490Kostya Serebryany2013-12-053-20/+21
| | | | llvm-svn: 196491
* [tsan] fix the include path that is broken in configure/make build but works ↵Kostya Serebryany2013-12-053-21/+20
| | | | | | in cmake build (PR18144). This is a quick fix. Will need to fix the configure/make build properly llvm-svn: 196490
* [asan] revert 196373: committed to many files by mistakeKostya Serebryany2013-12-043-20/+21
| | | | llvm-svn: 196374
* [asan] require __i686__ for the SSE test; also make weaker claims about ↵Kostya Serebryany2013-12-043-21/+20
| | | | | | stack buffer overflows in another test llvm-svn: 196373
* [sanitizer] Expose __sanitizer_print_stack_trace().Sergey Matveev2013-12-031-0/+16
| | | | | | | Expose a new interface function for debugging code built with sanitizer tools. Add an ASan implementation. llvm-svn: 196302
* [asan] dump coverage even if asan has reported an error Kostya Serebryany2013-11-291-0/+7
| | | | llvm-svn: 195959
* [sanitizer] disable shmctl intercetor in 32-bit -- it is rotten (bug filed)Kostya Serebryany2013-11-291-0/+17
| | | | llvm-svn: 195958
* [ASan] Fix large_allocator_unpoisons_on_free.cc to pass correct parameters ↵Alexander Potapenko2013-11-221-7/+9
| | | | | | to mmap() on OSX. llvm-svn: 195443
* [asan] rename contiguous-container-buffer-overflow (too long) to ↵Kostya Serebryany2013-11-211-1/+1
| | | | | | container-overflow llvm-svn: 195352
* [asan] Fix OSX tests.Evgeniy Stepanov2013-11-201-1/+1
| | | | llvm-svn: 195250
* [asan] Test that LargeAllocator unpoisons memory before releasing it to the OS.Evgeniy Stepanov2013-11-201-0/+23
| | | | llvm-svn: 195243
OpenPOWER on IntegriCloud