Skip to content

Commit 19b540f

Browse files
committed
ci
1 parent 089a7de commit 19b540f

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

libafl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ all-features = true
1717
rustc-args = ["--cfg", "docsrs"]
1818

1919
[features]
20-
default = ["std", "derive", "llmp_compression", "llmp_small_maps", "llmp_broker_timeouts", "rand_trait", "fork", "prelude", "gzip", "regex", "serdeany_autoreg", "tui_monitor", "libafl_bolts/xxh3"]
20+
default = ["nautilus", "concolic_mutation", "std", "derive", "llmp_compression", "llmp_small_maps", "llmp_broker_timeouts", "rand_trait", "fork", "prelude", "gzip", "regex", "serdeany_autoreg", "tui_monitor", "libafl_bolts/xxh3"]
2121
document-features = ["dep:document-features"]
2222

2323
#! # Feature Flags

libafl/src/feedbacks/nautilus.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ use libafl_bolts::Named;
88
use serde::{Deserialize, Serialize};
99
use serde_json;
1010

11+
#[cfg(feature = "introspection")]
12+
use crate::state::HasClientPerfMonitor;
13+
1114
use crate::{
1215
corpus::{Corpus, Testcase},
1316
events::EventFirer,
@@ -16,7 +19,7 @@ use crate::{
1619
generators::NautilusContext,
1720
inputs::NautilusInput,
1821
observers::ObserversTuple,
19-
state::{HasClientPerfMonitor, HasCorpus, HasMetadata, State},
22+
state::{HasCorpus, HasMetadata, State},
2023
Error,
2124
};
2225

@@ -83,7 +86,6 @@ impl<'a, S> Named for NautilusFeedback<'a, S> {
8386
impl<'a, S> Feedback<S> for NautilusFeedback<'a, S>
8487
where
8588
S: HasMetadata
86-
+ HasClientPerfMonitor
8789
+ HasCorpus<Input = NautilusInput>
8890
+ State<Input = NautilusInput>,
8991
{

libafl_qemu/src/executor.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ use libafl::{
1010
executors::InProcessForkExecutor,
1111
state::{HasLastReportTime, HasMetadata},
1212
};
13+
14+
#[cfg(feature = "introspection")]
15+
use libafl::state::HasClientPerfMonitor;
1316
use libafl::{
1417
events::{EventFirer, EventRestarter},
1518
executors::{
@@ -20,7 +23,7 @@ use libafl::{
2023
fuzzer::HasObjective,
2124
inputs::UsesInput,
2225
observers::{ObserversTuple, UsesObservers},
23-
state::{HasClientPerfMonitor, HasCorpus, HasExecutions, HasSolutions, State, UsesState},
26+
state::{HasCorpus, HasExecutions, HasSolutions, State, UsesState},
2427
Error,
2528
};
2629
use libafl_bolts::os::unix_signals::{siginfo_t, ucontext_t, Signal};
@@ -81,7 +84,7 @@ pub unsafe fn inproc_qemu_crash_handler<E, EM, OF, Z>(
8184
E: Executor<EM, Z> + HasObservers,
8285
EM: EventFirer<State = E::State> + EventRestarter<State = E::State>,
8386
OF: Feedback<E::State>,
84-
E::State: HasExecutions + HasSolutions + HasClientPerfMonitor + HasCorpus,
87+
E::State: HasExecutions + HasSolutions + HasCorpus,
8588
Z: HasObjective<Objective = OF, State = E::State>,
8689
{
8790
let real_crash = if USE_LIBAFL_CRASH_HANDLER {
@@ -118,7 +121,7 @@ pub unsafe fn inproc_qemu_timeout_handler<E, EM, OF, Z>(
118121
E: Executor<EM, Z> + HasObservers,
119122
EM: EventFirer<State = E::State> + EventRestarter<State = E::State>,
120123
OF: Feedback<E::State>,
121-
E::State: HasSolutions + HasClientPerfMonitor + HasCorpus + HasExecutions,
124+
E::State: HasSolutions + HasCorpus + HasExecutions,
122125
Z: HasObjective<Objective = OF, State = E::State>,
123126
{
124127
if BREAK_ON_TMOUT {
@@ -148,7 +151,7 @@ where
148151
where
149152
EM: EventFirer<State = S> + EventRestarter<State = S>,
150153
OF: Feedback<S>,
151-
S: State + HasExecutions + HasCorpus + HasSolutions + HasClientPerfMonitor,
154+
S: State + HasExecutions + HasCorpus + HasSolutions,
152155
Z: HasObjective<Objective = OF, State = S>,
153156
{
154157
let mut inner = InProcessExecutor::new(harness_fn, observers, fuzzer, state, event_mgr)?;
@@ -322,7 +325,7 @@ where
322325
where
323326
EM: EventFirer<State = S> + EventRestarter,
324327
OF: Feedback<S>,
325-
S: HasSolutions + HasClientPerfMonitor,
328+
S: HasSolutions,
326329
Z: HasObjective<Objective = OF, State = S>,
327330
{
328331
assert!(!QT::HOOKS_DO_SIDE_EFFECTS, "When using QemuForkExecutor, the hooks must not do any side effect as they will happen in the child process and then discarded");
@@ -367,7 +370,7 @@ impl<'a, EM, H, OT, QT, S, Z, SP> Executor<EM, Z> for QemuForkExecutor<'a, H, OT
367370
where
368371
EM: EventManager<InProcessForkExecutor<'a, H, OT, S, SP>, Z, State = S>,
369372
H: FnMut(&S::Input) -> ExitKind,
370-
S: State + HasClientPerfMonitor + HasMetadata + HasExecutions + HasLastReportTime,
373+
S: State + HasMetadata + HasExecutions + HasLastReportTime,
371374
OT: ObserversTuple<S>,
372375
QT: QemuHelperTuple<S>,
373376
SP: ShMemProvider,

0 commit comments

Comments
 (0)