ViewFrame seems uninitialized when using UIContext.createTabForWidget

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

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

評価

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

調査の方向性

Start with UIContext.createTabForWidget and trace how it creates a tab for an existing View such as LinearView or HexEditor. Reproduce the navigation-dialog crash in ViewFrame::getHistoryEntry and the graph-switch crash in ViewFrame::getTypeForView(QWidget*); done means these operations no longer crash for widgets added through this path.

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

説明

Component: API Component: UI Effort: Medium Impact: Low

Multiple ViewFrame methods crash Binary Ninja when creating a new tab for an existing View widget like LinearView and HexEditor. I've found at least two methods crash, there's probably more. The two I've found to crash are ViewFrame::getHistoryEntry and ViewFrame::getTypeForView(QWidget*).

The first one occurs whenever the user tries to use the navigation dialog (g) to change location. Scrolling and clicking around works fine, but as soon as the dialog is used, it crashes on ViewFrame::getHistoryEntry().

The second one occured with a LinearView when I accidentally pressed the space bar and it tried to switch to the Graph view. That one crashed on ViewFrame::getTypeForView(QWidget*).

I suspect that the ViewFrame is not being created or initialized, which is causing null derefs when its member fields are accessed.

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