Skip to content

Exporting view to Ghidra does not include certain user types. #8449

Description

@UvuvDev

Version and Platform (required):

  • Binary Ninja Version: 6.0.10515-dev
  • Edition: Ultimate
  • OS: macOS
  • OS 26
  • CPU Architecture: M3 Pro

Bug Description:
If you define a user type that has a typedef of a built-in type, it will not export to the .gzf. Opening the .gzf that gets exported inside of Binary Ninja will not show it, and Ghidra will not show it either, so the problem is in the exported view. When the type is used in something like a function definition, Ghidra crashes while importing the file.

Steps To Reproduce:

  1. Open a binary
  2. Define a type from C source, use typedef uint8_t test_ghidra_sees
  3. Go to Plugins -> Ghidra -> Export View
  4. Open the exported .gzf in either Binary Ninja or Ghidra and observe test_ghidra_sees is not present.
  5. Go back to the file, change a function type to test_ghidra_sees
  6. Repeat 3.
  7. Import the file into Ghidra and observe a crash.

Expected Behavior:
I expect all types to transfer correctly into the .gzf.

Screenshots/Video Recording:

Image

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions