Skip to content

Commit

Permalink
Make sure logger is installed without errors in fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacWoods committed Nov 15, 2020
1 parent 65fc67a commit 034cecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aml/fuzz/fuzz_targets/fuzz_target_1.rs
Expand Up @@ -3,7 +3,7 @@ use libfuzzer_sys::fuzz_target;
extern crate aml;

fuzz_target!(|data: &[u8]| {
simplelog::SimpleLogger::init(simplelog::LevelFilter::Trace, simplelog::Config::default());
simplelog::SimpleLogger::init(simplelog::LevelFilter::Trace, simplelog::Config::default()).unwrap();
let mut context = aml::AmlContext::new(Box::new(Handler), false, aml::DebugVerbosity::None);
let _ = context.parse_table(data);
});
Expand Down

0 comments on commit 034cecb

Please sign in to comment.