Support for adjusted switch-case values

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp

調査の方向性

Start from HLIL switch-case generation and review related issue #3776. Determine where the subtraction before the switch is represented, then make the adjusted case values appear directly in the output as shown; done means the generated HLIL is readable without the redundant subtraction.

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

説明

Component: Core Core: HLIL Effort: Medium Impact: Medium

In the HLIL of the following code, the semantics of the output is correct, but it is not very readable. The code subtracts a char with 0x64 ('b'), and then do a switch case for value 0x0-0x11. It would be nice if we can remove the subtraction, and directly convert the switch-case values to 'b', etc

Screenshot 2023-11-15 at 6 01 21 PM

For example, to some code like this:

 switch ( prov[prov_i] )
    {
      case 'd':
        --flag_ck[ck_i];
        break;
      case 'e':
        if ( x <= 0 )
        {
          done = 1;
        }
        else if ( flag_ck[ck_i] <= 0 )

Related to https://github.com/Vector35/binaryninja-api/issues/3776

主要言語
C++
スター
1.3k
フォーク
298
平均マージ
5日 5時間
マージ済み PR(30日)
19

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

Vector35/binaryninja-api のほかの issue

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

似ている issue

C++ の issue をもっと見る

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

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