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

Đang mở
#8,650 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, cpp
Lĩnh vực
reverse-engineering

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C++
Star
1.3k
Fork
304
Merge trung bình
2 ngày 20 giờ
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Vector35/binaryninja-api

Tất cả issue của Vector35/binaryninja-api

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.