Support for adjusted switch-case values

Đang mở
#4,753 0 bình luận 3 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
35/100
Loại issue
Tính năng
Độ 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 from HLIL switch-case generation and review related issue #3776. Determine where the subtraction before the switch is represented, then make the adjusted case values appear directly in the output as shown; done means the generated HLIL is readable without the redundant subtraction.

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

Mô tả

Component: Core Core: HLIL Effort: Medium Impact: Medium

In the HLIL of the following code, the semantics of the output is correct, but it is not very readable. The code subtracts a char with 0x64 ('b'), and then do a switch case for value 0x0-0x11. It would be nice if we can remove the subtraction, and directly convert the switch-case values to 'b', etc

Screenshot 2023-11-15 at 6 01 21 PM

For example, to some code like this:

 switch ( prov[prov_i] )
    {
      case 'd':
        --flag_ck[ck_i];
        break;
      case 'e':
        if ( x <= 0 )
        {
          done = 1;
        }
        else if ( flag_ck[ck_i] <= 0 )

Related to https://github.com/Vector35/binaryninja-api/issues/3776

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.