Skip to content

Equate fails to convert on neighboring bytes of array, showing error message twice (Related to issue #9268) #9405

Description

@Alastakelay

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:

  1. Download EquateError.zip.txt, rename it to EquateError.zip, and extract it
  2. Open /EquateError/GhidraProject/GhdrNw/RevEng.gpr in ghidra and make sure ghidra finds /EquateError/bl602_bootrom.bin where it expects is
  3. Open the function at 0x21012F00 in the de-compilation
  4. Attempt to convert 0x15, and then 0x16 of the array to decimal
  5. See error

Expected behavior
Each byte cleanly converts from hex to decimal and equates doesn't mix up both bytes

Screenshots

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions