avast / avast/retdec

Strange number of relocations reported for PE

Open
#430 0 comments 0 reactions 0 assignees View on GitHub
bug C-fileformat C-fileinfo T-format-pe
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I noticed for several PE samples that number of relocations printed by `retdec-fileinfo --verbose` is always 0.

For example file `e9a77cb30595ef74f7dcd85d4faa340bbae84aca9e0809a76c351c97d2220158` has `.reloc` section with some data. I can view this data in other tools like `CFF Explorer`.

Relocations are mentioned in issue #137 which hints at possibility that this not yet implemented.
We should show correct number of relocations or at least not present any information about relocations unless #137 is implemented.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report with retdec-fileinfo --verbose on the referenced PE sample and inspect the .reloc section. Review issue #137 to determine whether relocation counting is implemented; done means reporting the correct relocation count or suppressing relocation information until that work exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
reverse-engineering
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.