This commit is contained in:
van Hauser 2020-12-18 12:15:20 +01:00
parent f6824ff6f8
commit 416b20cdf5
4 changed files with 3 additions and 4 deletions

View File

@ -254,7 +254,6 @@ where
ET: ExecutorsTuple<I>,
EM: EventManager<C, E, OT, FT, I, R>,
{
let mut added = 0 as u32;
for directory in &in_dir {
self.load_from_directory(corpus, generator, engine, manager, Path::new(directory))?;
}

View File

@ -122,7 +122,7 @@ void __sanitizer_cov_trace_switch(uint64_t val, uint64_t *cases) {
__attribute__((weak)) int LLVMFuzzerInitialize(int *argc, char ***argv);
void afl_libfuzzer_main();
int afl_libfuzzer_init(int *argc, char ***argv) {
int afl_libfuzzer_init(int argc, char **argv) {
if (LLVMFuzzerInitialize)
return LLVMFuzzerInitialize(&argc, &argv);

View File

@ -101,7 +101,7 @@ pub extern "C" fn afl_libfuzzer_main() {
}
if input != None {
for indir in input.unwrap() {
for indir in input.clone().unwrap() {
println!("in: {}", indir);
}
}

View File

@ -7,6 +7,6 @@ rm -f test_fuzz.elf test_fuzz.o
./compiler -flto=thin -c test/test.c -o test_fuzz.o || exit 1
./compiler -flto=thin test_fuzz.o -o test_fuzz.elf || exit 1
RUST_BACKTRACE=1 ./test_fuzz.elf -x a -x b foo bar
RUST_BACKTRACE=1 ./test_fuzz.elf -x a -x b -T5 foo bar