Vector35 / Vector35/binaryninja-api

Cannot create an empty unicode string via SHIFT+a

Open
#3,524 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: UI Effort: Trivial Impact: Low
Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Description

Version and Platform (required):

  • Binary Ninja Version: 3.1.3751-dev
  • OS: Windows
  • OS Version: 10
  • CPU Architecture: x64

Bug Description:
I know that data_10018a20 and data_10018a22 are empty unicode string initializers for std::wstring. But I can not create an empty unicode string there.

Steps To Reproduce:

  1. Find an empty wide string initializer
  2. Go to it in linear view
  3. Press SHIFT+a in order to convert it into wide string
  4. See nothing happens
  5. Or, change its type to wchar_t by pressing Y
  6. See it does not show it as wide string

Expected Behavior:
I expect it creates an empty string there and show it like this in either two way: wchar16 data_10018a20 = L""

Screenshots:
zerowide

If I change type to wchar_t:
afterwide

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Reproduce the issue in Binary Ninja 3.1.3751-dev on Windows using the linear view, SHIFT+a, and the Y type-change action at an empty wide-string initializer. Done means an empty initializer is recognized and displayed as a wide string such as L"".

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools, reverse-engineering
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.