diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:12:29 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:12:29 -0500 |
| commit | 1c96d2785be633155fa95da6ab850be5a0bc3e14 (patch) | |
| tree | eeca9cd17f52367a39b24d21d5f46b18bddcea3e /runtime/src/pe_loader.cpp | |
| parent | d21abd008dc32723eaab000c3d6d7c2f5e0b15ff (diff) | |
| parent | 9ccb1052e4d317b18e82ff4b239bef25bc6b68c7 (diff) | |
Merge pull request #2839 from admin
Diffstat (limited to 'runtime/src/pe_loader.cpp')
| -rw-r--r-- | runtime/src/pe_loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/pe_loader.cpp b/runtime/src/pe_loader.cpp index 6ae3e52d9..c7a4e870f 100644 --- a/runtime/src/pe_loader.cpp +++ b/runtime/src/pe_loader.cpp | |||
| @@ -1134,8 +1134,8 @@ void Loader::bind_imports(Module& m) { | |||
| 1134 | uint16_t ord = by_ord ? (uint16_t)IMAGE_ORDINAL64(lookup->u1.Ordinal) : 0; | 1134 | uint16_t ord = by_ord ? (uint16_t)IMAGE_ORDINAL64(lookup->u1.Ordinal) : 0; |
| 1135 | std::string name; | 1135 | std::string name; |
| 1136 | if (!by_ord) { | 1136 | if (!by_ord) { |
| 1137 | require_range(m.name, lookup->u1.AddressOfData, sizeof(uint16_t), m.size, "an import name"); | ||
| 1137 | uint32_t hint = static_cast<uint32_t>(lookup->u1.AddressOfData); | 1138 | uint32_t hint = static_cast<uint32_t>(lookup->u1.AddressOfData); |
| 1138 | require_range(m.name, hint, sizeof(uint16_t), m.size, "an import name"); | ||
| 1139 | name = read_string(m.name, m.base, m.size, hint + sizeof(uint16_t), "an import name"); | 1139 | name = read_string(m.name, m.base, m.size, hint + sizeof(uint16_t), "an import name"); |
| 1140 | } | 1140 | } |
| 1141 | at<IMAGE_THUNK_DATA64>(m.base, static_cast<uint32_t>(iat_rva))->u1.Function = | 1141 | at<IMAGE_THUNK_DATA64>(m.base, static_cast<uint32_t>(iat_rva))->u1.Function = |