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

Inconsistant treatment of enumerations between pointers and arrays #6696

Open
Wall-AF opened this issue Jul 7, 2024 · 0 comments
Open

Inconsistant treatment of enumerations between pointers and arrays #6696

Wall-AF opened this issue Jul 7, 2024 · 0 comments

Comments

@Wall-AF
Copy link

Wall-AF commented Jul 7, 2024

Describe the bug
Whilst dereferencing a pointer to an enumeration the value does get converted into the enum name, when dereferencing an array it doesn't. (See the 2 lines below - from the included zip.)
*pmap = _FREE_PARA;
preg->last_failed_alloc[page_index] = 0xf1;
0xf1 is defined as _NO_FAILED_ALLOC

To Reproduce
Steps to reproduce the behavior:

  1. Load in the enclosed function (from the Decompile:Panels Debug Function Decompilation menu)
  2. See error

Expected behavior
Array dereferencing should work the same as pointer dereferecing wrt enumeration usage.

Screenshots
N/A.

Attachments
__sbh_free_block.zip

Environment (please complete the following information):

  • OS: Windows 11
  • Java Version: Temurin-21.0.3
  • Ghidra Version: 11.2-DEV
  • Ghidra Origin: locally built from 0475071

Additional context
Fixing this may help with other array issues.

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

No branches or pull requests

1 participant