-
Notifications
You must be signed in to change notification settings - Fork 42
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
Misaligned address when trying to access Import section of some PEs #246
Comments
I have locally fixed the issue by making |
That's unfortunate. The design of pelite demands that everything is aligned so that I can give references to the underlying data instead of making copies. This makes pelite a 'zero allocation' parser which is one of my goals. Unfortunately I'm not currently willing to go back to |
Huh, I'm aware of I don't see why you say I understand reluctance to move to In the meantime, I'll probably move to goblin or object. Shux because PELite's API and documentation are really nice! |
Seems to be more robust to misaligned addresses / null references CasualX/pelite#246
Seems to be more robust to misaligned addresses / null references CasualX/pelite#246
Running ASAN over the tests reveals:
|
First, thanks for this great crate, it's been a huge help!
While trying to look at the import table of
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\CoreCon\11.0\bin\IpOverUsbSvc.exe
, I'm getting amisaligned address
error. This appears to be caused by theIMAGE_IMPORT_DESCRIPTOR
table being misaligned, which is confirmed when looking at the binary in a hex editor:The binary can be found here:
IpOverUsbSvc.exe.zip
Here's some test code:
The text was updated successfully, but these errors were encountered: