[ASan/Win] Use the new function interception approach to handle function wrappers...
authorTimur Iskhodzhanov <timurrrr@google.com>
Thu, 22 May 2014 12:03:40 +0000 (12:03 +0000)
committerTimur Iskhodzhanov <timurrrr@google.com>
Thu, 22 May 2014 12:03:40 +0000 (12:03 +0000)
commit0c7c78f1d1017e1c4ad70832d033827c2eabd5b4
tree44e103dd2ecd1e2086d43baf1df2948bed944870
parent4a3ab28ac73ae585d6c82fc46572d6613db2bf0f
[ASan/Win] Use the new function interception approach to handle function wrappers too; wrap strlen() in DLLs

Reviewed at http://reviews.llvm.org/D3871

llvm-svn: 209427
compiler-rt/lib/asan/asan_dll_thunk.cc
compiler-rt/lib/interception/interception.h
compiler-rt/test/asan/TestCases/Windows/dll_intercept_strlen.cc [new file with mode: 0644]
compiler-rt/test/asan/TestCases/Windows/dll_malloc_left_oob.cc
compiler-rt/test/asan/TestCases/Windows/dll_malloc_uaf.cc