Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import table with empty blocks interpreted as wrong #22

Closed
hasherezade opened this issue Jul 28, 2020 · 0 comments
Closed

Import table with empty blocks interpreted as wrong #22

hasherezade opened this issue Jul 28, 2020 · 0 comments

Comments

@hasherezade
Copy link
Owner

It is rare, but it may happen in valid PE files, that full blocks are empty:

empty_reloc_blocks

Example - the files belonging to MS Office:

C:/Program Files/Common Files/microsoft shared/OfficeSoftwareProtectionPlatform/OSPPSVC.EXE
C:/Program Files/Common Files/microsoft shared/OfficeSoftwareProtectionPlatform/OSPPOBJS.DLL

LibPEConv interprets blocks which have all entries empty as invalid blocks.

return (i != 0);

And then the full Import Table is treated as invalid:

if (!process_reloc_block(block, entriesNum, page, modulePtr, moduleSize, is64b, callback)) {
return false;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant