Multiple issues while interacting with functions defined on top of one another

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

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
32/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
reverse-engineering

Hướng nghiên cứu

Start by reproducing the overlapping-function scenario described in the issue: define two functions at one address, set a tag on the second, navigate to it, and observe view updates during analysis. Trace the affected navigation, tag, and analysis-refresh entry points; done means each action remains associated with the correct function rather than always selecting the first.

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

Mô tả

Component: UI Effort: Medium Impact: Medium

Version and Platform (required):

  • Binary Ninja Version: 3.5.4322-dev
  • OS: macOS
  • OS Version: 13.4
  • CPU Architecture: ARM64

Bug Description:
I've been working on a few databases lately that have had multiple functions defined on top of each other, either erroneously or intentionally. Many user actions (such as navigation) will assume there is exactly one function at a given address and will navigate you to the first function, rather than to the function that your user action actually corresponds to.

An example of this is having a tag set on the second function and trying to navigate there. It will send you to the first function instead.

Another example is the view updating during analysis: It'll just refresh your window into the first function, which is exceptionally disorienting.

Since we support overlapping functions as a key feature that differentiates us from competitors like IDA (which, at least the last time I used it professionally, did not handle this in the slightest), we should make sure that this support works and that we aren't accidentally baking bad assumptions into the codebase when we're making changes and bugfixes.

Steps To Reproduce:

  1. Define two functions, one on top of the other.
  2. Perform actions on the second of the two functions and observe all of the places where it's obvious that we assume Highlander rules apply.
  3. ???
  4. PROFIT!

Expected Behavior:
In all cases, if I am performing an action where the data upon which that action is taking place resides in one function, and not another, we should perform that action on the correct function despite the address existing in multiple.

Screenshots:
Somewhat difficult to take screenshots of some of this, but if anyone wants a video or in-person demo, I'm happy to put in the extra work.

Ngôn ngữ chính
C++
Star
1.3k
Fork
298
Merge trung bình
5 ngày 5 giờ
Pull request đã merge (30 ngày)
19

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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.