m4b / m4b/goblin

Don't return an error when some section are not correct

Open
#228 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.5k
Forks
202
PR merge metrics
No merged PRs in 30d

Description

I have a debug file (IBM935.so.debug) which contains some incorrect info in dynamic section and so the section failed to be parsed with error `Invalid PT_DYNAMIC size (offset 0x14db0, filesz 0x1f0)` (offset & section come from the .so file and in this file they're correct).
The problem is that I don't care at all about this section and I'd be fine to have `dynamic: None` in my Elf object.
So would it be possible to not return an error or at least have a way to configure the way to handle errors ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the parsing failure with IBM935.so.debug and inspect how the Elf object's dynamic section is parsed and how the Invalid PT_DYNAMIC size error is propagated. Determine whether the requested behavior should allow dynamic: None or expose configurable error handling, then verify that unrelated sections still parse successfully when this section is invalid.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
reverse-engineering
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.