-
Notifications
You must be signed in to change notification settings - Fork 267
Closed
Labels
Component: Ghidra ImportEffort: LowIssues require < 1 week of workIssues require < 1 week of workImpact: MediumIssue is impactful with a bad, or no, workaroundIssue is impactful with a bad, or no, workaround
Milestone
Description
Version and Platform (required):
- Binary Ninja Version: 5.2.8722 Personal (c75356aa)
- OS: macOS
- CPU Architecture: ARM64
Bug Description:
I attempted to import a Ghidra database for a Windows 32-bit x86 PE EXE, and Ghidra pointer objects appear to have been imported as __ptr64 even though the target architecture is 32 bits. This, understandably, corrupts the data afterwards as well as confusing the decompiler.
Steps To Reproduce:
Please provide all steps required to reproduce the behavior:
- Load a 32-bit x86 PE into Ghidra. Mark up some data as
pointer(possibly by using Ghidra'sPhotkey) - Load the same 32-bit PE into Binary Ninja. Wait for initial analysis to finish.
- Select Plugins->Ghidra Import->Import Database...
- Very likely not necessary, but I happen to have deselected
Memory Map - Notice that the pointer data is now a 64-bit pointer.
Expected Behavior:
pointer objects are 32 bits on a 32-bit target.
Binary:
I don't have permission to share this binary (abandonware). I can upload it if really necessary, but I don't think it matters?
Metadata
Metadata
Assignees
Labels
Component: Ghidra ImportEffort: LowIssues require < 1 week of workIssues require < 1 week of workImpact: MediumIssue is impactful with a bad, or no, workaroundIssue is impactful with a bad, or no, workaround
