Skip to content

Use image loader when loading corrupted resources#1055

Merged
xkubov merged 1 commit intomasterfrom
resources-corrupted
Jan 19, 2022
Merged

Use image loader when loading corrupted resources#1055
xkubov merged 1 commit intomasterfrom
resources-corrupted

Conversation

@metthal
Copy link
Copy Markdown
Member

@metthal metthal commented Jan 17, 2022

When the resource tree doesn't have expected depth, we use different
path to load resources which didn't use loader but calculated offset
from RVA on it's own resulting in underflows on integers and completely
bogus offsets. Even though offsets are still kinda bogus, they make
sense and are within the file itself after this change.

Example file: f39f1ad9f97766618826d47c2d32529425e773659f5577fea06a82e21f13b064

When the resource tree doesn't have expected depth, we use different
path to load resources which didn't use loader but calculated offset
from RVA on it's own resulting in underflows on integers and completely
bogus offsets. Even though offsets are still kinda bogus, they make
sense and are within the file itself after this change.

Example file: f39f1ad9f97766618826d47c2d32529425e773659f5577fea06a82e21f13b064
@xkubov
Copy link
Copy Markdown
Contributor

xkubov commented Jan 17, 2022

Lets run TC tests

@xkubov xkubov merged commit 4a5d9ef into master Jan 19, 2022
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

Successfully merging this pull request may close these issues.

2 participants