LibAFL: Remove tui_monitor from default features (#2685)

* No Usermode default

* no tui

* gg

* try fix CI

* fmt

---------

Co-authored-by: Dominik Maier <dmnk@google.com>
This commit is contained in:
Dongjia "toka" Zhang 2024-11-13 02:55:02 +01:00 committed by GitHub
parent 87f5f21e01
commit d5db2c0e3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 16 additions and 11 deletions

View File

@ -23,6 +23,6 @@ opt-level = 3
debug = true
[dependencies]
libafl = { path = "../../../libafl" }
libafl = { path = "../../../libafl", features = ["tui_monitor"] }
libafl_bolts = { path = "../../../libafl_bolts" }
log = { version = "0.4.22", features = ["release_max_level_info"] }

View File

@ -25,7 +25,7 @@ bindgen = "0.70.1"
cc = "1.1.21"
[dependencies]
libafl = { path = "../../../libafl" }
libafl = { path = "../../../libafl", features = ["tui_monitor"] }
libafl_bolts = { path = "../../../libafl_bolts" }
libafl_targets = { path = "../../../libafl_targets", features = [
"sancov_pcguard_hitcounts",

View File

@ -23,6 +23,6 @@ opt-level = 3
debug = true
[dependencies]
libafl = { path = "../../../libafl", features = ["unicode"] }
libafl = { path = "../../../libafl", features = ["unicode", "tui_monitor"] }
libafl_bolts = { path = "../../../libafl_bolts" }
log = { version = "0.4.22", features = ["release_max_level_info"] }

View File

@ -42,7 +42,7 @@ vergen-git2 = "1.0.1"
[dependencies]
clap = { version = "4.5.18", features = ["derive", "string"] }
libafl = { path = "../../../libafl" }
libafl = { path = "../../../libafl", features = ["tui_monitor"] }
libafl_bolts = { path = "../../../libafl_bolts", features = [
"errors_backtrace",
] }

View File

@ -5,7 +5,7 @@ edition = "2021"
default-run = "nyx_libxml2_standalone"
[dependencies]
libafl = { path = "../../../libafl" }
libafl = { path = "../../../libafl", features = ["tui_monitor"] }
libafl_bolts = { path = "../../../libafl_bolts" }
libafl_cc = { path = "../../../libafl_cc" }
libafl_nyx = { path = "../../../libafl_nyx" }

View File

@ -24,6 +24,9 @@ opt-level = 3
debug = true
[dependencies]
libafl = { path = "../../../libafl", features = ["multipart_inputs"] }
libafl = { path = "../../../libafl", features = [
"multipart_inputs",
"tui_monitor",
] }
libafl_bolts = { path = "../../../libafl_bolts" }
log = { version = "0.4.22", features = ["release_max_level_info"] }

View File

@ -37,7 +37,6 @@ default = [
"gzip",
"regex",
"serdeany_autoreg",
"tui_monitor",
"libafl_bolts/xxh3",
]
document-features = ["dep:document-features"]

View File

@ -71,7 +71,13 @@ impl NyxHelper {
let mut timeout = Duration::from_secs(u64::from(settings.timeout_secs));
timeout += Duration::from_micros(u64::from(settings.timeout_micro_secs));
Ok(Self { nyx_process, nyx_stdout, timeout, bitmap_size, bitmap_buffer })
Ok(Self {
nyx_process,
nyx_stdout,
timeout,
bitmap_size,
bitmap_buffer,
})
}
/// Set a timeout for Nyx.

View File

@ -32,7 +32,6 @@ for mname, module in cfg.items():
# First, add all the intra-procedural edges
for fname, v in module["edges"].items():
if fname not in fname2id:
GG.add_node(f_ids, label=fname)
fname2id[fname] = f_ids

View File

@ -219,7 +219,6 @@ def postprocess1():
# Cull transitions to states which were not expanded owing to the stack limit
if stack_limit:
blocklist = []
for final_state in final:
for transition in pda:
@ -287,7 +286,6 @@ def postprocess():
# Cull transitions to states which were not expanded owing to the stack limit
if stack_limit:
blocklist = []
for final_state in final:
for transition in pda: