diff options
author | Marcos Pividori <mpividori@google.com> | 2017-01-30 18:23:37 +0000 |
---|---|---|
committer | Marcos Pividori <mpividori@google.com> | 2017-01-30 18:23:37 +0000 |
commit | 4775ff6686a4b3991cfe5bfcfd009d0977d64c71 (patch) | |
tree | 9fc80089a885e350d39b5222c118dc277f32fa9a /lib/builtins/CMakeLists.txt | |
parent | 71f295fb4450e8a8ff550cca094cec16453cd56a (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@293521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions