Replies: 2 comments
-
Is there also a return inside of the if statement? |
Beta Was this translation helpful? Give feedback.
-
If you wanted specific resolution to this still, you’d need to post the disasm, but it’s very normal for the compiler to reuse and optimize for variable storage. Depending on instructions they possibly could be stored in the same place, and you’d need to tell ghidra to split the variable in the GUI. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, I met an decompilation problem in Ghidra 11.3.1 (The same issue exists in 11.2.1 too).
in unstripped binary with symbol, the code is shown as below. return value is
iVar7
, and first argument ofarray_insert_value
ispaVar9
, which are different variables.But when it comes to stripped version, the code becomes:
the first argument and return value are both
uVar10
.I'm very curious about what problem has caused this issue. How to solve it through ghidra script?
Beta Was this translation helpful? Give feedback.
All reactions