avast / avast/retdec

Decompilation problems

Open
#470 2 comments 0 reactions 1 assignee Claimed by @xkubov View on GitHub
P-output
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I try to decompile some function in .so file the outher day.
There was a severe difference between RetDec to IDA HexRays (in favor of IDA).
Decompilation didn't recognized the actual function, erased some necessary parts etc.

My q. is:
1. Is there a way to "fix" the decompiled version manually? (Like Ida that allow you to add the function prototype and to change variable names etc.)
2. Is there a way to just move over Ida HexRays decompile and just make it more readable (i.e. recognize struct, change types and names, delete unnecessary double decleration (i.e. `int a; a =5;` to `int a = 5;`)?

Thank you.

p.s. Are you working on some major change or this is pretty much the finel version (except bug fix)?

p.s. 2
Here is the code from Ida and from RetDec: `https://pastebin.com/jcQ2qKVG`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.