diff options
| author | Marcos Pividori <mpividori@google.com> | 2017-01-22 02:14:57 +0000 |
|---|---|---|
| committer | Marcos Pividori <mpividori@google.com> | 2017-01-22 02:14:57 +0000 |
| commit | 4e12600c90d9f0edc8e575769bbdeffb608664ec (patch) | |
| tree | 7f04e0bd90054f55ed824fc98e166251c21df35e /llvm/lib/Fuzzer | |
| parent | 15fbf682a1f4c1c18dcbd5f7e23b07124b15613d (diff) | |
| download | bcm5719-llvm-4e12600c90d9f0edc8e575769bbdeffb608664ec.tar.gz bcm5719-llvm-4e12600c90d9f0edc8e575769bbdeffb608664ec.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: 292747
Diffstat (limited to 'llvm/lib/Fuzzer')
0 files changed, 0 insertions, 0 deletions

