summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_win.cc
Commit message (Collapse)AuthorAge
* Remove a FIXME now that I can't reproduce the problemTimur Iskhodzhanov2013-11-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194331 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizers] Share some stack walking code between Windows and LinuxTimur Iskhodzhanov2013-11-09
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D2126 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194326 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Presumable fix stack trace unwinding on WindowsAlexey Samsonov2013-11-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194195 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Call Windows unwinder 'slow' and share StackTrace::Unwind across ↵Alexey Samsonov2013-11-07
| | | | | | all platforms. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194193 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Remove StackTrace::max_depth fieldAlexey Samsonov2013-10-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192534 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Turn GetStackTrace() into StackTrace::Unwind()Alexey Samsonov2013-10-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192533 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Refactor symbolization interface: use class instead of several ↵Alexey Samsonov2013-09-10
| | | | | | functions. Move some code around to get rid of extra source files git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190410 91177308-0d34-0410-b5e6-96231b3b80d8
* sanitizers: Make sure Visual Studio gets error reportsReid Kleckner2013-09-05
| | | | | | | | | Visual Studio appears to close stderr before launching a non-console win32 program. This means we don't see any sanitizer reports. If stderr printing fails, call OutputDebugStringA to get the reports into the Visual Studio debugger console. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190030 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Hopefully un-break the RTL on WindowsTimur Iskhodzhanov2013-09-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189821 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Add the way to find binary in PATHAlexey Samsonov2013-09-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189799 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Use less shadow on Win 32-bitTimur Iskhodzhanov2013-07-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186393 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix merge bugDmitry Vyukov2013-06-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183648 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix windows crash (incorrect stack boundaries)Dmitry Vyukov2013-06-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183646 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix windows mingw buildDmitry Vyukov2013-06-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183644 91177308-0d34-0410-b5e6-96231b3b80d8
* [nolibc] Move all platforms to internal_getpid.Peter Collingbourne2013-05-17
| | | | | | | | | | Before, we had an unused internal_getpid function for Linux, and a platform-independent GetPid function. To make the naming conventions consistent for syscall-like functions, the GetPid syscall wrapper in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is renamed to internal_getpid, bringing the Linux variant into use. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182132 91177308-0d34-0410-b5e6-96231b3b80d8
* Try to fix Windows build tooPeter Collingbourne2013-05-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181457 91177308-0d34-0410-b5e6-96231b3b80d8
* [nolibc] Change internal syscall API to remove reliance on libc's errno.Peter Collingbourne2013-05-08
| | | | | | | | | | | | | This change moves to a model where the error value of a system call is potentially contained in the return value itself rather than being implicit in errno. The helper function internal_iserror can be used to extract the error value from a return value. On platforms other than Linux/x86_64 this still uses errno, but other platforms are free to port their error handling to this new model. Differential Revision: http://llvm-reviews.chandlerc.com/D756 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181436 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Move GetStackTrace from ASan to sanitizer_common.Sergey Matveev2013-05-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181424 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Move GetThreadStackAndTls from TSan to sanitizer_common.Sergey Matveev2013-05-07
| | | | | | | | Move this function to sanitizer_common because LSan uses it too. Also, fix a bug where the TLS range reported for main thread was off by the size of the thread descriptor from libc (TSan doesn't care much, but for LSan it's critical). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181322 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a GetTid() implementation for WindowsTimur Iskhodzhanov2013-03-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177927 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Replace more platform checks with SANITIZER_ constants.Evgeniy Stepanov2013-03-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177400 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Add default constructor for BlockingMutexAlexey Samsonov2013-03-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177072 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] fix compilation for WindowsAlexey Samsonov2013-03-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177054 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Write a slightly better implementation of GetEnv() function on ↵Alexey Samsonov2013-03-14
| | | | | | Windows git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177051 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Move GetTlsSize code from TSan to sanitizer_common.Evgeniy Stepanov2013-03-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176938 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Implement BlockingMutex::CheckLocked()Alexey Samsonov2013-03-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176805 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] use raw syscall instead of _exit() function on LinuxAlexey Samsonov2013-02-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175622 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Make temporary filename depend on user IDAlexey Samsonov2013-02-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175424 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Switch Windows to allocator v2, also fixing some build errorsTimur Iskhodzhanov2013-02-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174707 91177308-0d34-0410-b5e6-96231b3b80d8
* asan/tsan: fix failing CHECK on windowsDmitry Vyukov2013-02-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174319 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] extend internal libc with stat/fstat/lstat functionsAlexey Samsonov2013-02-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174316 91177308-0d34-0410-b5e6-96231b3b80d8
* asan/tsan: fix compilation errors/bugs on Windows where long is 32-bit even ↵Dmitry Vyukov2013-02-04
| | | | | | in 64-bit mode git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174312 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] use u32 instead of mode_t, which is defined in Darwin headersAlexey Samsonov2013-02-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174189 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] make internal_open have the same interface as libc versionAlexey Samsonov2013-02-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174187 91177308-0d34-0410-b5e6-96231b3b80d8
* asan: fix windows buildDmitry Vyukov2013-01-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172415 91177308-0d34-0410-b5e6-96231b3b80d8
* asan/tsan: move blocking mutex from asan to sanitizer_commonDmitry Vyukov2013-01-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172380 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] add missing header on WindowsAlexey Samsonov2012-12-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170514 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] implement internal_isatty on WindowsAlexey Samsonov2012-12-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170507 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] fix windows buildKostya Serebryany2012-12-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170101 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] introduce MmapFixedOrDie and use it in SizeClassAllocator64Kostya Serebryany2012-12-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170099 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a libsanitizer API __sanitizer_sandbox_on_notify(void* reserved), which ↵Alexander Potapenko2012-12-10
| | | | | | | | | | should be used by the client programs to notify the tools that sandboxing is about to be turned on. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169732 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] get rid of some of the uses of kPageSize. The intent is to get rid of ↵Kostya Serebryany2012-11-23
| | | | | | it completely to support platforms with multiple possible page sizes. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168517 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] add sanity checks for communication with external symbolizerAlexey Samsonov2012-11-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167617 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] try to fix Windows bot - include stdlib.h for abort/_exit functionsAlexey Samsonov2012-11-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167577 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: windows: less includes, better diagnostics for failed VirtualAlloc(), ↵Dmitry Vyukov2012-11-06
| | | | | | implement sched_yield() git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167452 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Add internal_isatty to sanitizer_libc and PrintsToTty to ↵Alexey Samsonov2012-11-02
| | | | | | determine whether error reports are printed to terminal git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167298 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Use kStderrFd constant instead of hardcoded 2Alexey Samsonov2012-11-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167291 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Remove unneeded returns after UNIMPLEMENTED macroAlexey Samsonov2012-10-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165493 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Hoist functions to get/set stack size and re-exec from ↵Alexey Samsonov2012-09-17
| | | | | | memory-sanitizer branch to sanitizer_common git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164020 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] implement readlink as syscall on LinuxAlexey Samsonov2012-09-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163213 91177308-0d34-0410-b5e6-96231b3b80d8