You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed this is probably because Ghidra knows the signature for atoi, or because it understood it from the context.
In radare2, it is treated as an imported function which doesn't have an hard-coded signature in the program. Moreover, analysis performed by ghidra can't be compared to the analysis by r2ghidra as there will always be differences. It need to be compared to the analysis of radare2 itself (regardless of the decompiler)
The r2ghidra seems to have some problem when dealing with function signature, especially when it comes to the imported functions.
To reproduce this problem, just need a simple C code:
In this condition, the decompiler just think that atoi return void, instead of a int type.
But in ghidra, the function signature is correct:
The text was updated successfully, but these errors were encountered: