Add validation to detect common errors in workflow activities that modify ILs

Đang mở
#8,642 0 bình luận 1 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
devtools

Hướng nghiên cứu

Start with the workflow activity and IL-modification guidance in the binaryninja-api repository, especially the linked bni l-modifying.html documentation, to identify the required finalization and SSA steps and the in-place limitations. The issue leaves open whether to warn or perform missing work automatically, so first investigate how activities complete and how IL changes are tracked. Done means detecting the listed mistakes and providing an agreed warning or automatic handling behavior.

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

Mô tả

Impact: Medium

Version and Platform (required):

  • Binary Ninja Version: 6.1.10853-dev Ultimate, 2f5af57a
  • OS: macos
  • OS Version: 27.0.1
  • CPU Architecture: arm64

Bug Description:
https://docs.binary.ninja/dev/bnil-modifying.html lists a number of steps that an activity that is modifying IL must take. They differ slightly between whether the modification is being made in place or by copying the IL function. Broadly, they are:

  1. The IL function must have been finalized.
  2. The IL function must have had its SSA form regenerated (excepting ILs that don't have an SSA form).
  3. SSA forms must not be directly modified since any changes will be lost when SSA form is regenerated from the underlying non-SSA IL.
  4. There are limitations on what is safe to modify in place.

Getting these wrong can lead to quite confusing results that are hard to debug. For instance, failing to finalize the IL function or generate the SSA form can lead to seeing the correct IL at the level you modified, while later analysis phases entirely ignore your changes.

It seems like it should be possible to detect that an activity has made these mistakes and warn the developer.

Alternatively, if we can detect that the developer missed necessary steps, we could simply do the work when the activity completes.

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.