summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorMarcos Pividori <mpividori@google.com>2017-01-30 18:23:37 +0000
committerMarcos Pividori <mpividori@google.com>2017-01-30 18:23:37 +0000
commit7ac943c46344ef4c40096fc161ec913c733cdffc (patch)
treef307a9dd92837b0b3f3ce81f8badb7db33bc987c /llvm/lib/CodeGen
parent0a5ab5c4dbd9435fe0c435ca2d1116435535f2be (diff)
downloadbcm5719-llvm-7ac943c46344ef4c40096fc161ec913c733cdffc.tar.gz
bcm5719-llvm-7ac943c46344ef4c40096fc161ec913c733cdffc.zip
[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
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud