Closed UberLambda closed 6 years ago
The strcmp() at plthook_win32.c:241 sometimes causes a segmentation fault. This is because names of entries in plthook->entries are sometimes null (such as for some entries in "Shell32.dll" on my Windows 10 install).
plthook_win32.c:241
name
plthook->entries
A simple workaround is to replace plthook_win32.c:241 from
plthook->entries[idx].name = name;
to
plthook->entries[idx].name = name ? name : "(null)";
Thanks for the pointing! I'll check it later.
The functions whose names are null are exported functions from a DLL by ordinal. I fixed it. Thanks again for reporting it.
Thank you for the fix!
The strcmp() at
plthook_win32.c:241
sometimes causes a segmentation fault. This is becausename
s of entries inplthook->entries
are sometimes null (such as for some entries in "Shell32.dll" on my Windows 10 install).A simple workaround is to replace
plthook_win32.c:241
fromto