Conditional type matching

Open
#2,131 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

The issue does not identify files, tests, or an implementation entry point. Start by locating the type-matching and syscall or Objective-C message-handling areas in the Binary Ninja API, then define how conditional values select parameter types and add coverage for ptrace, syscall, and msgSend cases.

Written by the indexing model from the issue text.

Description

Component: Type Libraries Effort: High Impact: High

I suggest that binaryninja should be able to attach different types to a variable/argument when certain conditions are met. For example, ptrace has a request parameter, and it determines the types of the other parameters. We should be able to recognize the request value in this case, and apply different types to the other three parameters accordingly.

This is somehow similar to syscall, where the system call number is the condition, and we apply different types to the other parameters accordingly.

This would also better handle msgSend in ObjC. Though I cannot find the issue that tracks it

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

  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.

More from Vector35/binaryninja-api

All issues in Vector35/binaryninja-api

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.