avast / avast/retdec

Should combine 2 small pushs to a normal one

Open
#828 0 comments 0 reactions 0 assignees View on GitHub
C-bin2llvmir 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/tree/master/from_holdec/small_pushs/ia32_elf

Output:
```
int main(int argc, char ** argv) {
// 0x8049060
printf("plain: 0x%08x\n", 0x11223344);
printf("small: 0x%08x\n", 0x3344);
return 0;
}
```

But the second printf call will also print out 0x11223344 since there is a second push (not shown here) of 0x1122.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked subject at decompiler-subjects/from_holdec/small_pushs/ia32_elf and reproduce the shown output in RetDec. Trace how consecutive small pushes are handled, then verify the generated output matches the subject's expected printf values.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers, 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.