In Ghidra headless, all functions have return type undefined
#7378
Unanswered
ignatirabo
asked this question in
Q&A
Replies: 1 comment 2 replies
-
For the last comment I did, I realized now that I need to check whether the return type is an instance of |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Ghidra headless (compiled from the master branch), I want to find all functions that return
undefined (*) [16]
. However, when I check the return type of all functions, they return/undefined
of length 1 with description 'Undefined Byte'.The thing that surprised me is that if I turn on the
Decompiler Parameter ID
analyzer, the types are now defined. My guess is thatDecompiler Parameter ID
is commiting the function signatures.Assuming my guess is correct: how can I ensure that when I run my AbstractAnalyzer the function signatures are commited?
Or what else could be the case?
This is the function signature if I let Ghidra do it's thing:
Also something I noticed is that when I do have 'Decompiler Parameter ID' on, the return type of this function is not an instance of
PointerDataType
, neitherArrayDataType
(which sounds wrong) and it has length 8, when I would assume it has length 16. Any explanation for this?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions