Describe the bug
When attempting to convert bytes in an array from hexadecimal to decimal equate fails if the neighboring byte has already been converted.
The error message "Equate named […] already exists with value of [neighboring decimal equate value]." shows up twice.
To Reproduce
Steps to reproduce the behavior:
- Download EquateError.zip.txt, rename it to EquateError.zip, and extract it
- Open /EquateError/GhidraProject/GhdrNw/RevEng.gpr in ghidra and make sure ghidra finds /EquateError/bl602_bootrom.bin where it expects is
- Open the function at 0x21012F00 in the de-compilation
- Attempt to convert 0x15, and then 0x16 of the array to decimal
- See error
Expected behavior
Each byte cleanly converts from hex to decimal and equates doesn't mix up both bytes
Screenshots
Attachments
behavior
EquateError.zip.txt
Environment (please complete the following information):
Build Date: 2026-Jun-11 1459 UTC
Ghidra Version: 12.1.2
Java Home: /app/jdk
JVM Version: Flathub 21.0.11
OS: Linux 7.1.3-201.fc44.x86_64 amd64
Additional context
The first 4 elements of the array are stored with the "sw" instruction on the stack instead of individually as bytes
Describe the bug
When attempting to convert bytes in an array from hexadecimal to decimal equate fails if the neighboring byte has already been converted.
The error message "Equate named […] already exists with value of [neighboring decimal equate value]." shows up twice.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Each byte cleanly converts from hex to decimal and equates doesn't mix up both bytes
Screenshots
Attachments
behavior
EquateError.zip.txt
Environment (please complete the following information):
Build Date: 2026-Jun-11 1459 UTC
Ghidra Version: 12.1.2
Java Home: /app/jdk
JVM Version: Flathub 21.0.11
OS: Linux 7.1.3-201.fc44.x86_64 amd64
Additional context
The first 4 elements of the array are stored with the "sw" instruction on the stack instead of individually as bytes