We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to function pointers.
If a variable is called at some point, the type of it could be set to a function pointer.
Consider the following example:
$ python decompile.py extractme main
... int var_0; ... memcpy(var_0, 0x804c020, 71); var_0(); var_0 = 0; ...
here, since the var_0 is being called after initialization, we can set its type to function pointer instead of integer. extractme.zip
var_0
FunctionPointer
TypePropagation
CodeGenerator
The text was updated successfully, but these errors were encountered:
/cib
Sorry, something went wrong.
Branch issue-45-_Types_Create_function_pointer_type created!
Create draft PR for #45
f702d0c
fnhartmann
Successfully merging a pull request may close this issue.
Proposal
Add support to function pointers.
If a variable is called at some point, the type of it could be set to a function pointer.
Consider the following example:
here, since the
var_0
is being called after initialization, we can set its type to function pointer instead of integer.extractme.zip
Approach
FunctionPointer
with the following fieldsTypePropagation
to consider variables that are being called.CodeGenerator
to generate declarations for the corresponding function pointers if needed.The text was updated successfully, but these errors were encountered: