Vector35 / Vector35/binaryninja-api

Support bulk defining/modifying types for data vars in a selection

Open
#5,281 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Right now we already support bulk defining integer types by pressing 1, 2, 4, 8. A user recently brought up a use case which suggests we might wish to extend this functionality to:

  1. bulk defining such types even if they are not integers. For example, the user might wish to define several enums over a range. Putting them in an array might be an optional in certain cases, but there are still many cases where they are not related, so putting them in an array is not a good idea

  2. bulk changing the type. The user brought up a case where he has several strings with the type "char*", and he wishes to change them to "const char*". This is not easy to carry out now. It would be great if we support bulk modifying the types in a selection. I have also ran into a similar situation where I get several integers, and I wish to change all of them to const type.

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

Start by locating the existing bulk integer type-definition action and the selection and data-variable type APIs. Compare the requested bulk definition and bulk modification cases, including non-integer types and const-qualified pointer types. Done means both operations work across a selection without requiring the variables to be placed in an array.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
reverse-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.