Set constant value for structure members

オープン
#8,670 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
cpp

調査の方向性

The issue names no files, tests or entry points, so the first step is to find where structure member types and dataflow constant values are handled in the Binary Ninja analysis code. The open question is whether the constant belongs to the type or to the view, and that needs a maintainer decision before any code is written. Done would mean a settled design plus a way to assert a member's value during dataflow.

索引モデルが issue の本文から書いたものです。

説明

What is the feature you'd like to have?
I want the ability to specify a constant value of a structure type member, such that when that member is read during analysis, dataflow asserts that the value is whatever constant I have specified. Not sure if this should be a property of the type itself or of the view as a sort of view-level UIDF constant.

Is your feature request related to a problem?

  1. I have a structure with a field that is always set to a specific constant, and I want all functions using this structure to know of that value
  2. I have a C++ class definition with a vtable and want to poke the address of the vtable in the data segment into the vtable member, such that indirect calls through the vtable can automatically discover the concrete destinations for functions.

Are any alternative solutions acceptable?
I can write a script to iterate all uses of that structure member and UIDF the variable it gets loaded into, but this is kinda messy and needs to be re-ran every time analysis updates

Additional Information:
Reported by loadlibrary on Slack, also me because I want the vtable thing

主要言語
C++
スター
1.3k
フォーク
304
平均マージ
2日 20時間
マージ済み PR(30日)
10

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Vector35/binaryninja-api のほかの issue

Vector35/binaryninja-api の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。