goblin icon indicating copy to clipboard operation
goblin copied to clipboard

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

Open robbert-vdh opened this issue 2 years ago • 5 comments

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.

robbert-vdh avatar May 23 '22 10:05 robbert-vdh

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

m4b avatar May 24 '22 02:05 m4b

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.

robbert-vdh avatar May 24 '22 02:05 robbert-vdh

anyone want to test if this is still a bug?

m4b avatar Oct 24 '22 04:10 m4b

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

robbert-vdh avatar Oct 24 '22 09:10 robbert-vdh