AFLplusplus / AFLplusplus/LibAFL

Add a dedicated mechanism for disabling a test case

Aperta
#3,312 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Rust
Stelle
2.6k
Fork
481
Merge medio
2g 30m
PR unite (30g)
16

Descrizione

**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).

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
testing-qa
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.