@@ -14,15 +14,15 @@ use libafl::{
1414 feedbacks:: { CrashFeedback , MaxMapFeedback } ,
1515 fuzzer:: { Fuzzer , StdFuzzer } ,
1616 generators:: RandPrintablesGenerator ,
17- inputs:: HasTargetBytes ,
17+ inputs:: { HasTargetBytes , NopBytesConverter } ,
1818 mutators:: { havoc_mutations:: havoc_mutations, scheduled:: HavocScheduledMutator } ,
1919 observers:: StdMapObserver ,
2020 schedulers:: QueueScheduler ,
2121 stages:: { mutational:: StdMutationalStage , AflStatsStage , CalibrationStage } ,
2222 state:: { HasCorpus , HasExecutions , StdState } ,
23+ BloomInputFilter , StdFuzzerBuilder ,
2324} ;
2425use libafl_bolts:: { current_nanos, nonzero, rands:: StdRand , tuples:: tuple_list, AsSlice } ;
25-
2626/// Coverage map with explicit assignments due to the lack of instrumentation
2727static mut SIGNALS : [ u8 ; 16 ] = [ 0 ; 16 ] ;
2828static mut SIGNALS_PTR : * mut u8 = & raw mut SIGNALS as _ ;
@@ -138,8 +138,13 @@ pub fn main() {
138138 #[ cfg( not( feature = "bloom_input_filter" ) ) ]
139139 let mut fuzzer = StdFuzzer :: new ( scheduler, feedback, objective) ;
140140 #[ cfg( feature = "bloom_input_filter" ) ]
141- let mut fuzzer =
142- StdFuzzer :: with_bloom_input_filter ( scheduler, feedback, objective, 10_000_000 , 0.001 ) ;
141+ let filter = BloomInputFilter :: new ( 10_000_000 , 0.001 ) ;
142+ #[ cfg( feature = "bloom_input_filter" ) ]
143+ let mut fuzzer = StdFuzzerBuilder :: new ( )
144+ . input_filter ( filter)
145+ . bytes_converter ( NopBytesConverter :: default ( ) )
146+ . build ( scheduler, feedback, objective)
147+ . unwrap ( ) ;
143148
144149 // Create the executor for an in-process function with just one observer
145150 let executor = CustomExecutor :: new ( & state) ;
0 commit comments