File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
crates/libafl_qemu/src/emu/drivers
fuzzers/full_system/qemu_linux_process Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub struct NyxEmulatorDriver {
28
28
allow_page_on_start : bool , // when fuzzing starts, all modules will only accept the current page table
29
29
#[ builder( default = false ) ]
30
30
print_commands : bool ,
31
- #[ builder( default = ( 1024 * 1024 ) ) ]
31
+ #[ builder( default = 1024 * 1024 ) ]
32
32
max_input_size : usize ,
33
33
}
34
34
Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ linux_builder_dir: target_dir
20
20
compile_target api = " lqemu": (build api)
21
21
clang -O0 -static -I {{ BUILD_DIR }} / include \
22
22
example/ harness_{{ api }} .c \
23
- - o {{ LINUX_BUILDER_DIR }} / runtime/ harness
23
+ - o {{ LINUX_BUILDER_DIR }} / hooks / runtime/ harness
24
24
25
25
update_files api = " lqemu": target_dir linux_builder_dir (build api)
26
- cp -r setup/ * " {{ LINUX_BUILDER_DIR }} /setup/"
27
- cp -r runtime/ * " {{ LINUX_BUILDER_DIR }} /runtime/"
26
+ cp -r setup/ * " {{ LINUX_BUILDER_DIR }} /hooks/ setup/"
27
+ cp -r runtime/ * " {{ LINUX_BUILDER_DIR }} /hooks/ runtime/"
28
28
29
29
cp {{ BUILD_DIR }} / include/ * " {{ LINUX_BUILDER_DIR }} /setup/"
30
30
31
- target api = " lqemu": linux_builder_dir update_files
31
+ target api = " lqemu": linux_builder_dir compile_target update_files
32
32
{{ LINUX_BUILDER_DIR}} / build.sh
33
33
34
34
build api = " lqemu":
@@ -71,4 +71,4 @@ run api="lqemu": (build api)
71
71
test : build (build " nyx" )
72
72
73
73
clean :
74
- cargo clean
74
+ cargo clean
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ pub fn fuzz() {
173
173
TimeFeedback :: new( & time_observer)
174
174
) ;
175
175
176
- let map_feedback = MaxMapFeedback :: new ( & edges_observer) ;
176
+ let map_feedback = MaxMapFeedback :: with_name ( "edges_objective" , & edges_observer) ;
177
177
178
178
// A feedback to choose if an input is a solution or not
179
179
let mut objective = feedback_and_fast ! (
@@ -218,7 +218,6 @@ pub fn fuzz() {
218
218
timeout,
219
219
)
220
220
. expect ( "Failed to create QemuExecutor" ) ;
221
-
222
221
// Instead of calling the timeout handler and restart the process, trigger a breakpoint ASAP
223
222
executor. break_on_timeout ( ) ;
224
223
You can’t perform that action at this time.
0 commit comments