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:
parent
87f5f21e01
commit
d5db2c0e3f
@ -23,6 +23,6 @@ opt-level = 3
|
|||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libafl = { path = "../../../libafl" }
|
libafl = { path = "../../../libafl", features = ["tui_monitor"] }
|
||||||
libafl_bolts = { path = "../../../libafl_bolts" }
|
libafl_bolts = { path = "../../../libafl_bolts" }
|
||||||
log = { version = "0.4.22", features = ["release_max_level_info"] }
|
log = { version = "0.4.22", features = ["release_max_level_info"] }
|
||||||
|
@ -25,7 +25,7 @@ bindgen = "0.70.1"
|
|||||||
cc = "1.1.21"
|
cc = "1.1.21"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libafl = { path = "../../../libafl" }
|
libafl = { path = "../../../libafl", features = ["tui_monitor"] }
|
||||||
libafl_bolts = { path = "../../../libafl_bolts" }
|
libafl_bolts = { path = "../../../libafl_bolts" }
|
||||||
libafl_targets = { path = "../../../libafl_targets", features = [
|
libafl_targets = { path = "../../../libafl_targets", features = [
|
||||||
"sancov_pcguard_hitcounts",
|
"sancov_pcguard_hitcounts",
|
||||||
|
@ -23,6 +23,6 @@ opt-level = 3
|
|||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libafl = { path = "../../../libafl", features = ["unicode"] }
|
libafl = { path = "../../../libafl", features = ["unicode", "tui_monitor"] }
|
||||||
libafl_bolts = { path = "../../../libafl_bolts" }
|
libafl_bolts = { path = "../../../libafl_bolts" }
|
||||||
log = { version = "0.4.22", features = ["release_max_level_info"] }
|
log = { version = "0.4.22", features = ["release_max_level_info"] }
|
||||||
|
@ -42,7 +42,7 @@ vergen-git2 = "1.0.1"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "4.5.18", features = ["derive", "string"] }
|
clap = { version = "4.5.18", features = ["derive", "string"] }
|
||||||
libafl = { path = "../../../libafl" }
|
libafl = { path = "../../../libafl", features = ["tui_monitor"] }
|
||||||
libafl_bolts = { path = "../../../libafl_bolts", features = [
|
libafl_bolts = { path = "../../../libafl_bolts", features = [
|
||||||
"errors_backtrace",
|
"errors_backtrace",
|
||||||
] }
|
] }
|
||||||
|
@ -5,7 +5,7 @@ edition = "2021"
|
|||||||
default-run = "nyx_libxml2_standalone"
|
default-run = "nyx_libxml2_standalone"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libafl = { path = "../../../libafl" }
|
libafl = { path = "../../../libafl", features = ["tui_monitor"] }
|
||||||
libafl_bolts = { path = "../../../libafl_bolts" }
|
libafl_bolts = { path = "../../../libafl_bolts" }
|
||||||
libafl_cc = { path = "../../../libafl_cc" }
|
libafl_cc = { path = "../../../libafl_cc" }
|
||||||
libafl_nyx = { path = "../../../libafl_nyx" }
|
libafl_nyx = { path = "../../../libafl_nyx" }
|
||||||
|
@ -24,6 +24,9 @@ opt-level = 3
|
|||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libafl = { path = "../../../libafl", features = ["multipart_inputs"] }
|
libafl = { path = "../../../libafl", features = [
|
||||||
|
"multipart_inputs",
|
||||||
|
"tui_monitor",
|
||||||
|
] }
|
||||||
libafl_bolts = { path = "../../../libafl_bolts" }
|
libafl_bolts = { path = "../../../libafl_bolts" }
|
||||||
log = { version = "0.4.22", features = ["release_max_level_info"] }
|
log = { version = "0.4.22", features = ["release_max_level_info"] }
|
||||||
|
@ -37,7 +37,6 @@ default = [
|
|||||||
"gzip",
|
"gzip",
|
||||||
"regex",
|
"regex",
|
||||||
"serdeany_autoreg",
|
"serdeany_autoreg",
|
||||||
"tui_monitor",
|
|
||||||
"libafl_bolts/xxh3",
|
"libafl_bolts/xxh3",
|
||||||
]
|
]
|
||||||
document-features = ["dep:document-features"]
|
document-features = ["dep:document-features"]
|
||||||
|
@ -71,7 +71,13 @@ impl NyxHelper {
|
|||||||
let mut timeout = Duration::from_secs(u64::from(settings.timeout_secs));
|
let mut timeout = Duration::from_secs(u64::from(settings.timeout_secs));
|
||||||
timeout += Duration::from_micros(u64::from(settings.timeout_micro_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.
|
/// Set a timeout for Nyx.
|
||||||
|
@ -32,7 +32,6 @@ for mname, module in cfg.items():
|
|||||||
# First, add all the intra-procedural edges
|
# First, add all the intra-procedural edges
|
||||||
|
|
||||||
for fname, v in module["edges"].items():
|
for fname, v in module["edges"].items():
|
||||||
|
|
||||||
if fname not in fname2id:
|
if fname not in fname2id:
|
||||||
GG.add_node(f_ids, label=fname)
|
GG.add_node(f_ids, label=fname)
|
||||||
fname2id[fname] = f_ids
|
fname2id[fname] = f_ids
|
||||||
|
@ -219,7 +219,6 @@ def postprocess1():
|
|||||||
|
|
||||||
# Cull transitions to states which were not expanded owing to the stack limit
|
# Cull transitions to states which were not expanded owing to the stack limit
|
||||||
if stack_limit:
|
if stack_limit:
|
||||||
|
|
||||||
blocklist = []
|
blocklist = []
|
||||||
for final_state in final:
|
for final_state in final:
|
||||||
for transition in pda:
|
for transition in pda:
|
||||||
@ -287,7 +286,6 @@ def postprocess():
|
|||||||
|
|
||||||
# Cull transitions to states which were not expanded owing to the stack limit
|
# Cull transitions to states which were not expanded owing to the stack limit
|
||||||
if stack_limit:
|
if stack_limit:
|
||||||
|
|
||||||
blocklist = []
|
blocklist = []
|
||||||
for final_state in final:
|
for final_state in final:
|
||||||
for transition in pda:
|
for transition in pda:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user