no_std and format

This commit is contained in:
Dominik Maier 2021-02-02 02:59:47 +01:00
parent 0fe2c49a17
commit 568f028314
5 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
use alloc::vec::Vec; use alloc::{borrow::ToOwned, vec::Vec};
use core::{cell::RefCell, marker::PhantomData}; use core::{cell::RefCell, marker::PhantomData};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -12,7 +12,7 @@ pub use ondisk::OnDiskCorpus;
pub mod queue; pub mod queue;
pub use queue::QueueCorpus; pub use queue::QueueCorpus;
use alloc::vec::Vec; use alloc::{borrow::ToOwned, vec::Vec};
use core::{cell::RefCell, ptr}; use core::{cell::RefCell, ptr};
use crate::{inputs::Input, utils::Rand, AflError}; use crate::{inputs::Input, utils::Rand, AflError};

View File

@ -1,4 +1,4 @@
use alloc::vec::Vec; use alloc::{borrow::ToOwned, vec::Vec};
use core::{cell::RefCell, marker::PhantomData}; use core::{cell::RefCell, marker::PhantomData};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -662,10 +662,12 @@ where
Ok(BrokerEventResult::Handled) Ok(BrokerEventResult::Handled)
} }
LLMPEventKind::Crash { input: _ } => { LLMPEventKind::Crash { input: _ } => {
#[cfg(feature = "std")]
println!("LLMPEvent::Crash"); println!("LLMPEvent::Crash");
Ok(BrokerEventResult::Handled) Ok(BrokerEventResult::Handled)
} }
LLMPEventKind::Timeout { input: _ } => { LLMPEventKind::Timeout { input: _ } => {
#[cfg(feature = "std")]
println!("LLMPEvent::Timeout"); println!("LLMPEvent::Timeout");
Ok(BrokerEventResult::Handled) Ok(BrokerEventResult::Handled)
} }

View File

@ -208,7 +208,6 @@ where
9 => mutation_byteinteresting, 9 => mutation_byteinteresting,
10 => mutation_wordinteresting, 10 => mutation_wordinteresting,
11 => mutation_dwordinteresting,*/ 11 => mutation_dwordinteresting,*/
_ => mutation_splice, _ => mutation_splice,
}; };
mutation(self, rand, corpus, input)?; mutation(self, rand, corpus, input)?;