MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / add_if_interesting

Method add_if_interesting

hail-fuzz/src/queue.rs:482–501  ·  view source on GitHub ↗
(
        &mut self,
        store: &mut CorpusStore<MultiStream>,
        state: &State,
    )

Source from the content-addressed store, hash-verified

480
481impl InputQueue for CoverageQueue {
482 fn add_if_interesting(
483 &mut self,
484 store: &mut CorpusStore<MultiStream>,
485 state: &State,
486 ) -> Option<InputId> {
487 if !state.new_coverage {
488 return None;
489 }
490
491 self.found_input_at_cycle = self.cycles;
492 let id = store.add(state);
493 self.new.push(NewInput {
494 id,
495 streams: state.input.streams.len(),
496 len: state.input.total_bytes(),
497 icount: state.instructions,
498 new_bits: state.new_bits.len(),
499 });
500 Some(id)
501 }
502}
503
504/// Determine whether the current input is smaller than an existing entry in the queue that is

Callers 1

check_exit_stateMethod · 0.80

Calls 3

addMethod · 0.80
total_bytesMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected