AFLplusplus / AFLplusplus/LibAFL

Add a dedicated mechanism for disabling a test case

Đang mở
#3,312 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Rust
Star
2.6k
Fork
481
Merge trung bình
2 ngày 30 phút
Pull request đã merge (30 ngày)
16

Mô tả

**Is your feature request related to a problem? Please describe.**
Let's say we wanna disable a testcase (because we are not interested in it anymore). The only way using the current API is to remove it and then add it as disabled. However, as it is indirect, it has potentially problematic consequences. For example, a new id will be given to the test case (which can cause the `parent_id` chain to break), or might delete some information (like in `OnDiskCorpus`)

**Describe the solution you'd like**
A dedicated API for disabling a test case.

**Describe alternatives you've considered**
Using `remove` and then `add_disabled`.
Also, `set_disabled` on the test case is not enough. It is not connected with the scheduler or the corpus, which may break the semantics (e.g., having a corpus with all disabled test cases is not considered empty).

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

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by tracing the current remove, add_disabled, and set_disabled APIs, then inspect how the scheduler and corpus handle test cases. Done means a dedicated disabling API preserves the test case ID and parent_id chain while keeping corpus and scheduler semantics correct.

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

Đánh giá

Công nghệ
rust
Lĩnh vực
testing-qa
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.