[AArch64] Always Branch patch on tbnz still broken in 6.0.10905 (regression of #6613/#7280)

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp

調査の方向性

The issue identifies the AArch64 tbnz instruction and the Patch → Always Branch action; it does not name an implementation file or test. Start by locating the AArch64 patch logic for Always Branch and compare its behavior with Invert Branch and Never Branch on the provided instruction word, 0x37000108. Done means Always Branch produces the unconditional b target encoding 0x14000008 while the other two actions retain their reported behavior.

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

説明

Arch: ARM64

Version and Platform (required):

  • Binary Ninja Version: 6.0.10905 Personal (fe7968aa)
  • Edition: Non-Commercial
  • OS: macOS
  • OS Version: 27.0.1 (26A434)
  • CPU Architecture: M4

Bug Description:
On AArch64, "Patch → Always Branch" applied to a tbnz produces an invalid instruction instead of an unconditional branch. Regression of #6613 / #7280 (both closed) — still reproducible on current stable.

Steps To Reproduce:

  1. Open an arm64 Mach-O containing tbnz w8, #0, target (word 0x37000108)
  2. Right-click the tbnz → Patch → Always Branch

Expected Behavior:
b target = 14000008

Actual:
tbz w15, #0, target = 3600010f — condition inverted (tbnz→tbz) AND register changed (w8→w15), so the branch is still conditional and tests an unrelated register. Patch silently does nothing useful.

"Invert Branch" (→ tbz w8) and "Never Branch" (→ nop) work correctly on the same instruction; only Always Branch is broken.

Reproduced on a tiny Rust debug build (if input.trim() == "1"), instruction at offset 0x17fc. Happy to attach the binary if useful.

Screenshots/Video Recording:
Image

Binary:
ceramic spring optimizes quantitatively

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