Hang / endless loop trying to unpack some Android firmware
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- reverse-engineering, tooling
Research direction
Start by obtaining the linked firmware or reduced testcase and reproducing the hang with binwalk -eM. Trace the recursive unpacking path that fails to terminate, then verify that the testcase completes without an endless loop while preserving normal extraction behavior.
Written by the indexing model from the issue text.
Description
While unpacking a certain firmware file that you can find here I discovered that recursive unpacking with binwalk -eM would hang:
https://firmware.center/firmware/Motorola/Android/XT1650%20Moto%20Z%20%28Griffin%29/Stock/XT1650-03/XT1650-03_GRIFFIN_RETEU-EMEA_MPL24.246-17_cid50_subsidy-DEFAULT_regulatory-03_CFC_EMEA.xml.zip
I tried tracking this down to a reduced test case. It's, however, still 700 MB (37MB compressed). Cannot upload due to Github's size limit, will provide it here for a while:
https://files.hboeck.de/binwalk-endlessloop-testcase.tar.xz
- Dominant language
- Rust
- Stars
- 14.4k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ReFirmLabs/binwalk
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
ReFirmLabs/binwalk#960 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
ReFirmLabs/binwalk#970 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
ReFirmLabs/binwalk#963 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
ReFirmLabs/binwalk#961 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
ReFirmLabs/binwalk#956 ·
All issues in ReFirmLabs/binwalk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100