ghidra
ghidra copied to clipboard
Metatype 'int' not recognized in Compiler Specification after Ghidra version upgrade
Describe the bug
The following pentry specification:
<pentry minsize="1" maxsize="8" metatype="int">
Works in Ghidra 10, but results in an error in Ghidra 11.0.3.
The error is as follows:
Open failed: ghidra.program.model.lang.CompilerSpecNotFoundException: Exception reading [NAME]/default(file.cspec:123): Unknown type class: int
To Reproduce Steps to reproduce the behavior:
- Edit a cspec file to include the offending attribute in a pentry node
- Open a file in Ghidra 11.0.3 using the modified cspec
Expected behavior
The cspec is parsed and the file is loaded for analysis.
Screenshots
N/A
Attachments
N/A
Environment (please complete the following information):
- OS: Debian Linux 11
- Java Version: 17
- Ghidra Version: 11.0.3
- Ghidra Origin: GitHub release
Additional context
I looked at the documentation of the latest release (I uploaded the generated docs here ) and confirmed that the metatype
attribute of pentry
should accept "int"
as a value:
metatype (Optional) Restriction on datatype: unknown, float, int, uint, or ptr