avast / avast/retdec

Should understand call+pop to get the current program counter

Open
#829 0 comments 0 reactions 0 assignees View on GitHub
enhancement P-output
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Subject: https://github.com/rfalke/decompiler-subjects/blob/master/from_holdec/get_i386_pc/ia32_elf/subject.exe

Output:
```
int main(int argc, char ** argv) {
// 0x8049060
printf("0x%08x: address of main\n", 0x8049060);
int32_t v1; // 0x8049060
printf("0x%08x: eip\n", v1);
return 0;
}
```

Expected:
```
...
printf("0x%08x: eip\n", 0x08049087);
...
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Run RetDec on the subject.exe linked in the issue and compare the current output with the expected eip value. Trace the decompiler's handling of the call+pop sequence that obtains the program counter; done means the output reports 0x08049087 instead of an uninitialized v1.

Written by the indexing model from the issue text.

Assessment

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.