hanchenye-llvm-project/compiler-rt/lib/interception
Marcos Pividori 7ac943c463 [interception] Check for export table's size before referring to its elements.
This fix a bug, when calling InternalGetProcAddress() for an executable that
doesn't export any symbol. So the table is empty.
If we don't check for this condition, the program fails with Error 0xc0000142.

Also, I add a regression test for Windows.

Differential Revision: https://reviews.llvm.org/D28502

llvm-svn: 293521
2017-01-30 18:23:37 +00:00
..
tests [interception] Check for export table's size before referring to its elements. 2017-01-30 18:23:37 +00:00
.clang-format Tell clang-format that (most) sanitizers are written using Google style guide. 2015-11-19 22:11:10 +00:00
CMakeLists.txt [compilter-rt] Add unittests for interception library 2016-07-06 19:15:11 +00:00
interception.h [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
interception_linux.cc
interception_linux.h [asan] Versioned interceptor for pthread_create. 2015-09-22 21:34:44 +00:00
interception_mac.cc
interception_mac.h
interception_type_test.cc
interception_win.cc [interception] Check for export table's size before referring to its elements. 2017-01-30 18:23:37 +00:00
interception_win.h [compiler-rt] Refactor the interception code on windows. 2016-07-11 23:02:18 +00:00