Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions crates/libafl_frida/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ fn main() {
let mut cmd = std::process::Command::new(compiler.path());
let cmd = cmd
.args(compiler.args())
// Propagate the environment `cc` set up for the compiler (on
// MSVC: the INCLUDE/LIB/PATH it discovered via vswhere/registry)
// so the direct `cl.exe` invocation works outside a Visual Studio
// developer shell, where INCLUDE/LIB are not set. Without this,
// cl.exe fails with `C1034: stdint.h: no include path set`.
.envs(compiler.env().iter().map(|(key, value)| (key, value)))
.arg("test_harness.cpp")
.arg("/link");

Expand Down
11 changes: 5 additions & 6 deletions fuzzers/forkserver/libafl-fuzz/src/fuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,21 +283,20 @@ define_run_client!(state, mgr, fuzzer_dir, core_id, opt, is_main_node, {
// Create our Scheduler
// Our scheduler can either be a Queue
// Or a "Weighted Random" which prioritizes entries that take less time and hit more edges
let scheduler;
if opt.sequential_queue {
scheduler = SupportedSchedulers::Queue(QueueScheduler::new(), PhantomData);
let scheduler = if opt.sequential_queue {
SupportedSchedulers::Queue(QueueScheduler::new(), PhantomData)
} else {
let ps = PowerSchedule::new(strategy);
let mut weighted_scheduler =
StdWeightedScheduler::with_schedule(&mut state, &edges_observer, Some(ps));
if opt.cycle_schedules {
weighted_scheduler = weighted_scheduler.cycling_scheduler();
}
scheduler = SupportedSchedulers::Weighted(
SupportedSchedulers::Weighted(
IndexesLenTimeMinimizerScheduler::new(&edges_observer, weighted_scheduler),
PhantomData,
);
}
)
};

// Create our Fuzzer
let mut fuzzer = StdFuzzer::new(scheduler, feedback, objective);
Expand Down
Loading