Skip to content

Commit 4273fce

Browse files
starsunyzlmrexodia
authored andcommitted
Fix export name is not parsed correctly
1 parent dcbe4e1 commit 4273fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dbg/module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static void ReadExportDirectory(MODINFO & Info, ULONG_PTR FileMapVA)
158158
}
159159

160160
DWORD index = addressOfNameOrdinals[i];
161-
if(index < Info.exports.size()) // Silent ignore (2) by ntdll loader: bogus AddressOfNameOrdinals indices
161+
if(index < exportDir->NumberOfFunctions) // Silent ignore (2) by ntdll loader: bogus AddressOfNameOrdinals indices
162162
{
163163
// Check if addressOfNames[i] is valid
164164
target = (ULONG_PTR)addressOfNames + i * sizeof(DWORD);

0 commit comments

Comments
 (0)