Skip to content

PE: Add support for permissive in resource parser#508

Merged
m4b merged 2 commits intom4b:masterfrom
kkent030315:rsrc-permissive
Jan 4, 2026
Merged

PE: Add support for permissive in resource parser#508
m4b merged 2 commits intom4b:masterfrom
kkent030315:rsrc-permissive

Conversation

@kkent030315
Copy link
Copy Markdown
Contributor

Fixes #506

Added support for permissive parsing in resource parser.

Copy link
Copy Markdown
Owner

@m4b m4b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@m4b m4b merged commit 18322e0 into m4b:master Jan 4, 2026
5 checks passed
@kkent030315 kkent030315 deleted the rsrc-permissive branch January 5, 2026 00:21
CalebFenton added a commit to CalebFenton/goblin that referenced this pull request Apr 8, 2026
Follow-up to m4b#508 which added permissive support inside
ResourceData::parse_with_opts but missed the top-level call
site in PE::parse(). Without this, ParseMode::Permissive still
fatally rejects PEs with malformed resource sections (e.g.,
packed malware where the packer mangled RT_VERSION RVAs).

Matches the pattern used by every other data directory parse:
debug_data, tls_data, load_config_data, clr_data, etc.
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.

PE created by MSYS2+Mingw-w64 GCC can't be parsed

2 participants