Skip to content
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

ghidra.program.database.code.InstructionDB does not return complete/correct operand data for aarch64 ld1r instruction #6817

Closed
mike-hunhoff opened this issue Aug 14, 2024 · 2 comments
Assignees
Labels

Comments

@mike-hunhoff
Copy link
Contributor

Describe the bug
ghidra.program.database.code.InstructionDB does not return complete/correct operand data for aarch64 ld1r instruction e.g.
Screenshot from 2024-08-14 16-35-53

To Reproduce

  1. Load and analyze https://github.com/mandiant/capa-testfiles/blob/3c790887a3f3aa671b2ccc1ec1fd14feff354f5c/aarch64/d1e6506964edbfffb08c0dd32e1486b11fbced7a4bd870ffe79f110298f0efb8.elf_
  2. Execute code shown above for instruction at 0x119970

Expected behavior
I'd expect the number of operands to equal two, and the arrangement specifier to be fully represented, resulting in the following output:

(0, [v, 0, ., 1, 6, B])
(1, [x20])

Environment:

  • OS: Ubuntu 24
  • Java Version: 17
  • Ghidra Version: 11.1
  • Ghidra Origin: GitHub distro
@ghidra1
Copy link
Collaborator

ghidra1 commented Aug 18, 2024

This effectively duplicates #6821 and is not a bug as discussed in that issue.

@ghidra1 ghidra1 self-assigned this Aug 18, 2024
@ghidra1 ghidra1 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2024
@ghidra1
Copy link
Collaborator

ghidra1 commented Aug 18, 2024

Your example appears to have a print-piece which is empty. This is likely due to a constructor which may have an additional "operand" with a default case where it need not be specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants