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

'cannot map exception_rva (0x5e000) into offset' when parsing PE32+ library #307

Open
robbert-vdh opened this issue May 23, 2022 · 5 comments

Comments

@robbert-vdh
Copy link

Hi,

I've been using winedump to parse a whole bunch of Windows library files to check whether they export certain functions. This has been working fine, but shelling out for every file is a bit inefficient and it adds an external dependency. I've been meaning to replace this with goblin, but with one of the 700-ish files I've been parsing I'm getting this error:

Malformed entity: cannot map exception_rva (0x5e000) into offset

Problem is, it's happening with this VST2 plugin, and they don't provide a demo: https://joeysturgistones.com/products/gain-reduction-deluxe

I'm not sure if I can legally provide a small snippet from the binary , but I definitely can't upload the entire file.

How should I proceed? For now I'll probably add Winedump as a backup in case goblin can't parse the file, but I'd love get rid of the Winedump dependency entirely.

@m4b
Copy link
Owner

m4b commented May 24, 2022

This may be what 9359fd0 was designed for; @robbert-vdh could you try out the parse_opt version by any chance?

@robbert-vdh
Copy link
Author

With that option disabled I'm getting a bad offset 1467245907. No idea what would or should be at that offset though, don't have the time to really look into this at the moment. Presumably there's something funky going on with this binary, but both Wine as well as actual Windows can handle it just fine.

@m4b
Copy link
Owner

m4b commented Oct 24, 2022

anyone want to test if this is still a bug?

@robbert-vdh
Copy link
Author

I just tested the same file again with goblin 0.6.0 from crates.io, it still happens.

@ideeockus
Copy link
Contributor

@robbert-vdh Hi! Can you provide information about PE sections? readpe -S or smth

I'm faced a similar problem, and I think the problem is probably in utils::find_offset

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

3 participants