Structsยง
- Term
Constraints - Size budget for terms and traces during mutation.
Constantsยง
- STEP_
LOCK ๐ - Per-stage anchor step lock. When set to
Some(k), every anchor drawn byreservoir_sampleโ and therefore allchoose*helpers built on it โ is restricted to stepk. Set bycrate::fuzzer::stages::StepLockedStackMutatorso that all mutations stacked in one mutational stage edit the SAME step. Global/Step fan-out (viafind_all_term_filtered/find_all_sub_term_filtered) does NOT consult this lock, so a Global mutation still spreads its effect across the whole trace โ only its anchor choice is confined to the locked step. Safe as a thread-local: LibAFL runs a single mutation thread per fuzzer process (one process per core), so there is no cross-trace interference.
Traitsยง
Functionsยง
- choose
- choose_
filtered - choose_
iter - choose_
mut - choose_
term - choose_
term_ filtered_ mut - choose_
term_ mut - choose_
term_ path - choose_
term_ path_ filtered - collect_
subterms ๐ - Post-order half of
find_all_sub_term_filtered: same bottom-up size fold and in-placepathassample_subterms, collecting every matching path instead of sampling one. - find_
all_ sub_ term_ filtered - Finds all sub-terms in a given term that satisfy a filtering condition and term constraints.
- find_
all_ term_ filtered - Finds all trace paths in a trace that satisfy a given filter predicate and term constraints.
- find_
term - find_
term_ by_ term_ path - find_
term_ by_ term_ path_ mut - find_
term_ mut - reservoir_
sample - https://en.wikipedia.org/wiki/Reservoir_sampling#Simple_algorithm
- sample_
subterms ๐ - Post-order half of
reservoir_sample: offers every selectable sub-term oftermto the reservoir and returnstermโsTermType::size. - set_
step_ lock - Set (or clear, with
None) the process-local anchor step lock. Returns the previous value so the caller can restore it after the stage. - step_
lock - Read the current anchor step lock (
Nonewhen unlocked).