avast / avast/pe_tools

RuntimeError('resource is outside the resource blob')

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
69
Forks
15
PR merge metrics
No merged PRs in 30d

Description

When I call parse_resource() on https://www.flash.cn/cdm/latest/flashplayerpp_install_cn.exe,
raise RuntimeError('resource is outside the resource blob') in rsrc.py:128 will be executed,
seems like some resource data in this file locate out of the .rsrc section.
I try replace this line with pass, then parse again, it seems to work for me.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in rsrc.py at line 128 and reproduce the failure by calling parse_resource() on the reported Flash installer URL. Inspect how the resource blob and .rsrc section boundaries are handled, then determine the expected behavior for resource data outside that section and verify parsing still completes without masking invalid data.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.