summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/msan
Commit message (Collapse)AuthorAgeFilesLines
...
* [MSan] don't add msan unit tests to check-msan command if libcxx is not ↵Alexey Samsonov2013-06-103-11/+17
| | | | | | checked out llvm-svn: 183641
* [sanitizer] Handle SIOCGIFCONF ioctl.Evgeniy Stepanov2013-06-071-0/+33
| | | | llvm-svn: 183529
* [sanitizer] ioctl interceptor.Evgeniy Stepanov2013-06-072-0/+21
| | | | | | | ASan: disabled by default MSan: enabled by default TSan: disabled llvm-svn: 183517
* Simplify lit configs for asan/lsan/msan unit testsAlexey Samsonov2013-06-062-24/+6
| | | | llvm-svn: 183410
* Remove a bunch of copy-paste: use common config for sanitizer lit/unit testsAlexey Samsonov2013-06-064-42/+8
| | | | llvm-svn: 183407
* [sanitizer] Fix __sanitizer_unaligned_* to work with unaligned data types.Evgeniy Stepanov2013-06-042-24/+24
| | | | llvm-svn: 183224
* [msan] Implement __sanitizer_unaligned_*.Evgeniy Stepanov2013-06-043-1/+121
| | | | llvm-svn: 183221
* [msan] Fix gcc build of msan runtime.Evgeniy Stepanov2013-05-312-4/+2
| | | | llvm-svn: 182999
* [msan] Handle mixed track-origins and keep-going settings (compiler-rt part).Evgeniy Stepanov2013-05-316-10/+64
| | | | | | | | | | | | | Before this change, each module defined a weak_odr global __msan_track_origins with a value of 1 if origin tracking is enabled, 0 if disabled. If there are modules with different values, any of them may win. If 0 wins, and there is at least one module with 1, the program will most likely crash. With this change, __msan_track_origins is only emitted if origin tracking is on. Then runtime library detects if there is at least one module with origin tracking, and enables runtime support for it. llvm-svn: 182996
* [sanitizer] Fix getaddrinfo interceptor to use the actual returned sockaddr ↵Evgeniy Stepanov2013-05-291-0/+12
| | | | | | size. llvm-svn: 182852
* [sanitizer] Intercept getpeername.Evgeniy Stepanov2013-05-291-2/+8
| | | | llvm-svn: 182844
* [sanitizer] Move TSan and MSan recvmsg interceptors to common.Evgeniy Stepanov2013-05-291-16/+3
| | | | llvm-svn: 182843
* [sanitizer] modf/modff/modfl interceptors.Evgeniy Stepanov2013-05-291-0/+18
| | | | llvm-svn: 182838
* Make InternalAlloc/InternalFree in sanitizer runtimes libc-free by switching ↵Alexey Samsonov2013-05-291-0/+1
| | | | | | to a custom allocator. llvm-svn: 182836
* [sanitizer] Share TSan accept & accept4 interceptors with other sanitizers.Evgeniy Stepanov2013-05-292-7/+51
| | | | llvm-svn: 182835
* [sanitizer] Improve getaddrinfo interceptor.Evgeniy Stepanov2013-05-281-1/+5
| | | | llvm-svn: 182775
* [msan] Change report header to be more alike to ASan and TSan.Evgeniy Stepanov2013-05-285-5/+5
| | | | llvm-svn: 182774
* Improve support for compiler-rt tests in CMake build.Alexey Samsonov2013-05-274-13/+15
| | | | | | | | Now compiler-rt tests run correctly if compiler-rt is checked out into arbitrary directory (not necessarily projects/compiler-rt). Patch by Greg Fitzgerald! llvm-svn: 182726
* [msan] Fix line >80 chars.Evgeniy Stepanov2013-05-231-1/+2
| | | | llvm-svn: 182578
* [sanitizer] Intercept getsockopt.Evgeniy Stepanov2013-05-231-1/+11
| | | | llvm-svn: 182574
* [sanitizer] Interceptors for gethostbyname and friends.Evgeniy Stepanov2013-05-231-0/+103
| | | | llvm-svn: 182573
* [msan] Intercept getsockname.Evgeniy Stepanov2013-05-221-0/+22
| | | | llvm-svn: 182475
* [msan] getaddrinfo & nested interceptor support.Evgeniy Stepanov2013-05-223-26/+97
| | | | | | | | | Multiple connected changes: - Ignore reads from nested interceptors. - Check shadow on reads from common interceptors. - getaddrinfo interceptor. llvm-svn: 182466
* [MSan] Add empty default blacklist for MSanAlexey Samsonov2013-05-214-1/+14
| | | | llvm-svn: 182382
* [msan] Replace GetArgv hack with something that is slightly better.Evgeniy Stepanov2013-05-211-13/+5
| | | | llvm-svn: 182359
* [sanitizer] Intercept pthread_getschedparam.Evgeniy Stepanov2013-05-211-0/+9
| | | | llvm-svn: 182353
* [nolibc] Begin moving sanitizer_common's libc-dependent code to a separate ↵Peter Collingbourne2013-05-171-0/+1
| | | | | | | | | | | | | | | | library Introduce a new object library, RTSanitizerCommonLibc, which will contain the subset of sanitizer_common with libc dependencies. RTSanitizerCommon contains the remainder of sanitizer_common, and is intended to have no libc dependencies. Begin moving code to RTSanitizerCommonLibc, starting with sanitizer_common.cc, whose libc-dependent portion is moved to sanitizer_common_libcdep.cc, the first member of the new library. This split affects the CMake build only. The makefile build continues to produce the full sanitizer_common library. llvm-svn: 182118
* [msan] Unpoison dlpi_name in dl_iterate_phdr interceptor.Evgeniy Stepanov2013-05-172-30/+48
| | | | llvm-svn: 182093
* [msan] Intercept dl_iterate_phdr.Evgeniy Stepanov2013-05-164-4/+52
| | | | llvm-svn: 182004
* Add sanitizer syscall hooks to the tool's export lists.Evgeniy Stepanov2013-05-141-1/+5
| | | | llvm-svn: 181790
* [msan] Common flags in MSan.Sergey Matveev2013-05-064-22/+20
| | | | llvm-svn: 181194
* [sanitizer] Intercept inet_pton and inet_ntop.Evgeniy Stepanov2013-04-231-0/+16
| | | | llvm-svn: 180107
* [MSan] Make a few interface functions accept 'const void *' instead of 'void*'Alexey Samsonov2013-04-233-12/+12
| | | | llvm-svn: 180102
* [msan] Unpoison the result of posix_memalign.Evgeniy Stepanov2013-04-232-1/+12
| | | | llvm-svn: 180101
* [sanitizer] Intercept getgrnam{_r}, getgrgid{_r}.Evgeniy Stepanov2013-04-231-0/+13
| | | | llvm-svn: 180091
* [msan] Allow clock_getres(, 0).Evgeniy Stepanov2013-04-231-0/+12
| | | | llvm-svn: 180090
* [msan] Fix gcc build of msan_test.Evgeniy Stepanov2013-04-161-10/+13
| | | | llvm-svn: 179594
* [msan] Fix sigaction test.Evgeniy Stepanov2013-04-151-0/+6
| | | | | | Restore SIGPROF handler to the original state after the test. llvm-svn: 179524
* [msan] Really disable replacement new and delete.Evgeniy Stepanov2013-04-151-0/+4
| | | | llvm-svn: 179522
* [MSan] Demangle function name in description of stack originAlexey Samsonov2013-04-121-1/+1
| | | | llvm-svn: 179368
* [MSan] don't build tests with -fPIE/-pie, as these flags are implied by ↵Alexey Samsonov2013-04-122-5/+1
| | | | | | -fsanitize=memory now llvm-svn: 179366
* Explicitly list all sanitizer headers in CMake build rules. Make sure ↵Alexey Samsonov2013-04-111-3/+2
| | | | | | sanitizer lit_tests depend on fresh headers. llvm-svn: 179293
* [sanitizer] Syscall hooks.Evgeniy Stepanov2013-04-112-1/+57
| | | | | | | Pre- and post- hooks for linux syscalls. Not wired into anything, but exposed through public interface. llvm-svn: 179288
* [sanitizer] Interceptors for wait*.Evgeniy Stepanov2013-04-091-25/+7
| | | | llvm-svn: 179096
* [msan] Intercept glob() with tests.Evgeniy Stepanov2013-04-095-0/+35
| | | | llvm-svn: 179091
* [msan] Interceptors for pipe2 and socketpair.Evgeniy Stepanov2013-04-082-0/+39
| | | | llvm-svn: 179022
* [msan] Intercept time().Evgeniy Stepanov2013-04-081-0/+8
| | | | llvm-svn: 179002
* [sanitizer] found a bug by code inspection: CHECK(a=b) instead of ↵Kostya Serebryany2013-04-051-1/+1
| | | | | | CHECK(a==b). Was puzzled why lint did not catch it. Turns out this check was disabled for asan source. fix all cases and enable the check llvm-svn: 178872
* [msan] Fix sigaction interceptor.Evgeniy Stepanov2013-04-052-4/+14
| | | | llvm-svn: 178868
* [msan] Conditionally disable new() and delete() wrappers.Evgeniy Stepanov2013-04-052-1/+6
| | | | | | To be used with static libstdc++. llvm-svn: 178866
OpenPOWER on IntegriCloud