ARMv8.1-M Low Overhead Branch instructions (LE/DLS/WLS/LETP/LCTP) not implemented

Offen
#8,650 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
c, cpp

Rechercherichtung

The issue gives the Thumb-2 byte sequence that currently disassembles to undefined and the expected output, so start by reproducing it with the Python snippet in the report. The payload names no source files, so locate the Thumb-2 decoder in the architecture code yourself. Use the five encodings in the table as test cases. Done when each one disassembles to its expected mnemonic and operands, and the sample function matches the expected output.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Version and Platform (required):

  • Binary Ninja Version: 6.1.10757-dev (f3ab1c0a)
  • Edition: Commercial
  • OS: macOS
  • OS Version: 27
  • CPU Architecture: M5

Bug Description:
The thumb2 Architecture does not decode the ARMv8.1-M Low Overhead Branch (LOB) extension.

Steps To Reproduce:

>>> bv.write(0, b'O\xf0\n\x0e\x00 \x010\x0f\xf0\x03\xc8pG')
14
>>> f = bv.create_user_function(0, Platform['linux-thumb2'])
... for i in f[0].disassembly_text:
...     print(i)
mov     lr, #0xa
movs    r0, #0
adds    r0, #1
undefined

Expected Behavior:
Output should be:

mov     lr, #0xa
movs    r0, #0
adds    r0, #1
le      lr, #0x8006
bx      lr

Additional Information:
All affected encodings:

Example Instruction Example Encoding
LE lr, <label> f00f c803
DLS lr, r0 f040 e001
WLS lr, r1, <label> f041 c807
LETP lr, <label> f01f c807
LCTP f00f e001
Vorherrschende Sprache
C++
Sterne
1.3k
Forks
304
Ø Merge
2 T. 20 Std.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Vector35/binaryninja-api

Alle Issues in Vector35/binaryninja-api

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.