Broken mach-o rtti recovery with dyld binding metadata

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

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

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

評価

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

調査の方向性

Start in view/macho/machoview.cpp around the linked ranges (about lines 1760-1788, 2358-2369 and 3485-3515), where undefined symbol-table entries are matched to dyld binding opcodes. Download the repro zip from the issue and compare the import names and bind records the view produces against what dyld resolves. Done means the missing binds are recovered, RTTI pointers and vtables resolve on the repro binaries, and the change does not break existing Mach-O loading.

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

説明

Component: RTTI Effort: Low File Format: Mach-O Impact: Medium

we incorrectly rely on Mach-O’s symbol table to resolve dyld imports. When undefined symbol-table entries are renamed or removed, it drops valid binds or assigns incorrect import names, even though dyld still loads the binary correctly. Missing binds break C++ RTTI pointers and prevent vtable recovery.

Repro binaries: macho_rtti_symbol_bug.zip

Potentially relevant code:

https://github.com/Vector35/binaryninja-api/blob/14d46ea2a46330b0b6abbea8dcb620f84494fc8b/view/macho/machoview.cpp#L1760-L1788

https://github.com/Vector35/binaryninja-api/blob/14d46ea2a46330b0b6abbea8dcb620f84494fc8b/view/macho/machoview.cpp#L2358-L2369

https://github.com/Vector35/binaryninja-api/blob/14d46ea2a46330b0b6abbea8dcb620f84494fc8b/view/macho/machoview.cpp#L3485-L3515

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