Dead Store Elimination doesn't seem to eliminate some expressions correctly.

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

@D0ntPanic がすでに取り組んでいます。

2022年2月9日 から。

評価

この issue はまだ評価されていません。

説明

Component: Core Core: HLIL Effort: Low IL Optimization Impact: Low

Version and Platform (required):

  • Binary Ninja Version: Version 3.0.3247-dev Personal
  • OS: Windows 11

Bug Description:
Dead Store Elimination sometimes leaves hanging operands, which gives an invalid HLIL. Here is the screenshot for the HLIL:
image
Here is the HLIL report, showing the DSE behavior:
image
Here it doesn't matter argc and argv are not passed to main

Steps To Reproduce:
Download rc4.zip and load rc4.exe in binary ninja.
Go to __scrt_common_main_seh and look right before main is called.

Expected Behavior:
If these value are supposed to be eliminated, they should not appear in the HLIL at all.

Additional information:
This doesn't seem to be an isolated problem. It happens fairly regularly in a few protected executable I sadly couldn't share. It seems to happen mainly when dereferencing memory:
image
image
image

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