Allow overriding how a pointer to a string literal is displayed
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- cpp
- Domain
- reverse-engineering
Research direction
Reproduce the issue with the provided binary by opening HLIL at 0x283334, then compare how the pointer is displayed in MLIL, HLIL, and pseudo C. Start by locating the existing “Display as” context-menu handling for constant values and string literals. Done means a constant pointer recognized as a string literal offers the menu and can be displayed as unsigned hex or another selected format.
Written by the indexing model from the issue text.
Description
Version and Platform (required):
- Binary Ninja Version: 5.1.7500-dev (1da2316a)
- OS: macOS 15.5
- CPU Architecture: arm64
Bug Description:
From time to time Binary Ninja will see a constant integer that it can interpret as a pointer into a string literal. When it does this, it displays the string literal inline in MLIL, HLIL, and pseudo C views. This isn't great (see https://github.com/Vector35/binaryninja-api/issues/6883 about doing this less).
When Binary Ninja makes an incorrect assumption about the type the user should be able to override it. Sadly the "Display as" context menu is not offered for constant pointers to string literals so there's no way to override it.
Steps To Reproduce:
- Open the provided binary.
- Go to 0x283334 in HLIL.
- Right-click on the bogus string literal and try to find some way to have it not be displayed as a string literal.
Expected Behavior:
The "Display as" context menu to let me choose to display it as unsigned hex or whatever.
Binary:
eager dragon paints eagerly
- Dominant language
- C++
- Stars
- 1.3k
- Forks
- 298
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 19
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Vector35/binaryninja-api
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Vector35/binaryninja-api#8540 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Vector35/binaryninja-api#8516 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Vector35/binaryninja-api#8503 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Vector35/binaryninja-api#8446 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Vector35/binaryninja-api#8444 ·
All issues in Vector35/binaryninja-api
Similar issues
-
Website Doc Typo Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 92/100
autowarefoundation/autoware_universe#13413 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
automated-analysis bug memory-safety
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100