Add validation to detect common errors in workflow activities that modify ILs

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
devtools

調査の方向性

Start with the workflow activity and IL-modification guidance in the binaryninja-api repository, especially the linked bni l-modifying.html documentation, to identify the required finalization and SSA steps and the in-place limitations. The issue leaves open whether to warn or perform missing work automatically, so first investigate how activities complete and how IL changes are tracked. Done means detecting the listed mistakes and providing an agreed warning or automatic handling behavior.

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

説明

Impact: Medium

Version and Platform (required):

  • Binary Ninja Version: 6.1.10853-dev Ultimate, 2f5af57a
  • OS: macos
  • OS Version: 27.0.1
  • CPU Architecture: arm64

Bug Description:
https://docs.binary.ninja/dev/bnil-modifying.html lists a number of steps that an activity that is modifying IL must take. They differ slightly between whether the modification is being made in place or by copying the IL function. Broadly, they are:

  1. The IL function must have been finalized.
  2. The IL function must have had its SSA form regenerated (excepting ILs that don't have an SSA form).
  3. SSA forms must not be directly modified since any changes will be lost when SSA form is regenerated from the underlying non-SSA IL.
  4. There are limitations on what is safe to modify in place.

Getting these wrong can lead to quite confusing results that are hard to debug. For instance, failing to finalize the IL function or generate the SSA form can lead to seeing the correct IL at the level you modified, while later analysis phases entirely ignore your changes.

It seems like it should be possible to detect that an activity has made these mistakes and warn the developer.

Alternatively, if we can detect that the developer missed necessary steps, we could simply do the work when the activity completes.

主要言語
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 を短くまとめたダイジェスト。