-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
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
Self-referencing/recursive function type fields cause a StackOverflowError when being exported. #6491
Labels
Status: Internal
This is being tracked internally by the Ghidra team
Comments
at ghidra.program.model.data.DataTypeWriter.getTypeDeclaration(DataTypeWriter.java:552)
at ghidra.program.model.data.DataTypeWriter.getParameterListString(DataTypeWriter.java:877)
at ghidra.program.model.data.DataTypeWriter.getFunctionPointerString(DataTypeWriter.java:850)
at ghidra.program.model.data.DataTypeWriter.getTypeDeclaration(DataTypeWriter.java:552)
at ghidra.program.model.data.DataTypeWriter.getParameterListString(DataTypeWriter.java:877)
at ghidra.program.model.data.DataTypeWriter.getFunctionPointerString(DataTypeWriter.java:850)
at ghidra.program.model.data.DataTypeWriter.getTypeDeclaration(DataTypeWriter.java:552)
at ghidra.program.model.data.DataTypeWriter.getParameterListString(DataTypeWriter.java:877)
at ghidra.program.model.data.DataTypeWriter.getFunctionPointerString(DataTypeWriter.java:850) |
ryanmkurtz
added
Status: Triage
Information is being gathered
Status: Internal
This is being tracked internally by the Ghidra team
and removed
Status: Prioritize
This is currently being prioritized
Status: Triage
Information is being gathered
labels
May 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Exporting a structure type containing a "self-referencing" function type field (e.g.,
void TaskCallback(TaskCallback *callback)
) causes a StackOverflowError.To Reproduce
Steps to reproduce the behavior:
void TaskCallback()
).void TaskCallback(TaskCallback *callback)
).Expected behavior
The structure and function type should both export successfully to a file.
Environment:
The text was updated successfully, but these errors were encountered: