pub struct StdState<I, C, R, SC> { /* private fields */ }
Expand description
The state a fuzz run.
Implementations§
source§impl<C, I, R, SC> StdState<I, C, R, SC>
impl<C, I, R, SC> StdState<I, C, R, SC>
sourcepub fn must_load_initial_inputs(&self) -> bool
pub fn must_load_initial_inputs(&self) -> bool
Decide if the state nust load the inputs
sourcepub fn load_initial_inputs_by_filenames<E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
manager: &mut EM,
file_list: &[PathBuf]
) -> Result<(), Error>
pub fn load_initial_inputs_by_filenames<E, EM, Z>( &mut self, fuzzer: &mut Z, executor: &mut E, manager: &mut EM, file_list: &[PathBuf] ) -> Result<(), Error>
Loads all intial inputs, even if they are not considered interesting
.
This is rarely the right method, use load_initial_inputs
,
and potentially fix your Feedback
, instead.
This method takes a list of files, instead of folders.
sourcepub fn load_initial_inputs_forced<E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
manager: &mut EM,
in_dirs: &[PathBuf]
) -> Result<(), Error>
pub fn load_initial_inputs_forced<E, EM, Z>( &mut self, fuzzer: &mut Z, executor: &mut E, manager: &mut EM, in_dirs: &[PathBuf] ) -> Result<(), Error>
Loads all intial inputs, even if they are not considered interesting
.
This is rarely the right method, use load_initial_inputs
,
and potentially fix your Feedback
, instead.
sourcepub fn load_initial_inputs_by_filenames_forced<E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
manager: &mut EM,
file_list: &[PathBuf]
) -> Result<(), Error>
pub fn load_initial_inputs_by_filenames_forced<E, EM, Z>( &mut self, fuzzer: &mut Z, executor: &mut E, manager: &mut EM, file_list: &[PathBuf] ) -> Result<(), Error>
Loads initial inputs from the passed-in in_dirs
.
If forced
is true, will add all testcases, no matter what.
This method takes a list of files, instead of folders.
sourcepub fn load_initial_inputs<E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
manager: &mut EM,
in_dirs: &[PathBuf]
) -> Result<(), Error>
pub fn load_initial_inputs<E, EM, Z>( &mut self, fuzzer: &mut Z, executor: &mut E, manager: &mut EM, in_dirs: &[PathBuf] ) -> Result<(), Error>
Loads initial inputs from the passed-in in_dirs
.
sourcepub fn load_initial_inputs_multicore<E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
manager: &mut EM,
in_dirs: &[PathBuf],
core_id: &CoreId,
cores: &Cores
) -> Result<(), Error>
pub fn load_initial_inputs_multicore<E, EM, Z>( &mut self, fuzzer: &mut Z, executor: &mut E, manager: &mut EM, in_dirs: &[PathBuf], core_id: &CoreId, cores: &Cores ) -> Result<(), Error>
Loads initial inputs by dividing the from the passed-in in_dirs
in a multicore fashion. Divides the corpus in chunks spread across cores.
source§impl<C, I, R, SC> StdState<I, C, R, SC>
impl<C, I, R, SC> StdState<I, C, R, SC>
sourcepub fn generate_initial_inputs_forced<G, E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
generator: &mut G,
manager: &mut EM,
num: usize
) -> Result<(), Error>
pub fn generate_initial_inputs_forced<G, E, EM, Z>( &mut self, fuzzer: &mut Z, executor: &mut E, generator: &mut G, manager: &mut EM, num: usize ) -> Result<(), Error>
Generate num
initial inputs, using the passed-in generator and force the addition to corpus.
Trait Implementations§
source§impl<'de, I, C, R, SC> Deserialize<'de> for StdState<I, C, R, SC>where
C: Serialize + for<'a> Deserialize<'a>,
SC: Serialize + for<'a> Deserialize<'a>,
R: Serialize + for<'a> Deserialize<'a>,
impl<'de, I, C, R, SC> Deserialize<'de> for StdState<I, C, R, SC>where
C: Serialize + for<'a> Deserialize<'a>,
SC: Serialize + for<'a> Deserialize<'a>,
R: Serialize + for<'a> Deserialize<'a>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl<I, C, R, SC> HasClientPerfMonitor for StdState<I, C, R, SC>
impl<I, C, R, SC> HasClientPerfMonitor for StdState<I, C, R, SC>
source§fn introspection_monitor(&self) -> &ClientPerfMonitor
fn introspection_monitor(&self) -> &ClientPerfMonitor
ClientPerfMonitor
itselfsource§fn introspection_monitor_mut(&mut self) -> &mut ClientPerfMonitor
fn introspection_monitor_mut(&mut self) -> &mut ClientPerfMonitor
ClientPerfMonitor
source§impl<I, C, R, SC> HasCurrentCorpusIdx for StdState<I, C, R, SC>
impl<I, C, R, SC> HasCurrentCorpusIdx for StdState<I, C, R, SC>
source§impl<I, C, R, SC> HasCurrentStage for StdState<I, C, R, SC>
impl<I, C, R, SC> HasCurrentStage for StdState<I, C, R, SC>
source§fn set_stage(&mut self, idx: usize) -> Result<(), Error>
fn set_stage(&mut self, idx: usize) -> Result<(), Error>
source§fn clear_stage(&mut self) -> Result<(), Error>
fn clear_stage(&mut self) -> Result<(), Error>
source§impl<I, C, R, SC> HasExecutions for StdState<I, C, R, SC>
impl<I, C, R, SC> HasExecutions for StdState<I, C, R, SC>
source§fn executions(&self) -> &u64
fn executions(&self) -> &u64
The executions counter
source§fn executions_mut(&mut self) -> &mut u64
fn executions_mut(&mut self) -> &mut u64
The executions counter (mutable)
source§impl<I, C, R, SC> HasImported for StdState<I, C, R, SC>
impl<I, C, R, SC> HasImported for StdState<I, C, R, SC>
source§impl<I, C, R, SC> HasLastReportTime for StdState<I, C, R, SC>
impl<I, C, R, SC> HasLastReportTime for StdState<I, C, R, SC>
source§fn last_report_time(&self) -> &Option<Duration>
fn last_report_time(&self) -> &Option<Duration>
The last time we reported progress,if available/used.
This information is used by fuzzer maybe_report_progress
.
source§fn last_report_time_mut(&mut self) -> &mut Option<Duration>
fn last_report_time_mut(&mut self) -> &mut Option<Duration>
The last time we reported progress,if available/used (mutable).
This information is used by fuzzer maybe_report_progress
.
source§impl<I, C, R, SC> HasMaxSize for StdState<I, C, R, SC>
impl<I, C, R, SC> HasMaxSize for StdState<I, C, R, SC>
source§impl<I, C, R, SC> HasMetadata for StdState<I, C, R, SC>
impl<I, C, R, SC> HasMetadata for StdState<I, C, R, SC>
source§fn metadata_map(&self) -> &SerdeAnyMap
fn metadata_map(&self) -> &SerdeAnyMap
Get all the metadata into an hashbrown::HashMap
source§fn metadata_map_mut(&mut self) -> &mut SerdeAnyMap
fn metadata_map_mut(&mut self) -> &mut SerdeAnyMap
Get all the metadata into an hashbrown::HashMap
(mutable)
source§fn add_metadata<M>(&mut self, meta: M)where
M: SerdeAny,
fn add_metadata<M>(&mut self, meta: M)where
M: SerdeAny,
source§fn metadata_or_insert_with<M>(&mut self, default: impl FnOnce() -> M) -> &mut Mwhere
M: SerdeAny,
fn metadata_or_insert_with<M>(&mut self, default: impl FnOnce() -> M) -> &mut Mwhere
M: SerdeAny,
default
source§impl<I, C, R, SC> HasNamedMetadata for StdState<I, C, R, SC>
impl<I, C, R, SC> HasNamedMetadata for StdState<I, C, R, SC>
source§fn named_metadata_map(&self) -> &NamedSerdeAnyMap
fn named_metadata_map(&self) -> &NamedSerdeAnyMap
Get all the metadata into an hashbrown::HashMap
source§fn named_metadata_map_mut(&mut self) -> &mut NamedSerdeAnyMap
fn named_metadata_map_mut(&mut self) -> &mut NamedSerdeAnyMap
Get all the metadata into an hashbrown::HashMap
(mutable)
source§fn add_named_metadata<M>(&mut self, name: &str, meta: M)where
M: SerdeAny,
fn add_named_metadata<M>(&mut self, name: &str, meta: M)where
M: SerdeAny,
source§fn remove_named_metadata<M>(&mut self, name: &str) -> Option<Box<M>>where
M: SerdeAny,
fn remove_named_metadata<M>(&mut self, name: &str) -> Option<Box<M>>where
M: SerdeAny,
source§fn named_metadata_or_insert_with<M>(
&mut self,
name: &str,
default: impl FnOnce() -> M
) -> &mut Mwhere
M: SerdeAny,
fn named_metadata_or_insert_with<M>(
&mut self,
name: &str,
default: impl FnOnce() -> M
) -> &mut Mwhere
M: SerdeAny,
default
source§fn has_named_metadata<M>(&self, name: &str) -> boolwhere
M: SerdeAny,
fn has_named_metadata<M>(&self, name: &str) -> boolwhere
M: SerdeAny,
source§impl<I, C, R, SC> HasNestedStageStatus for StdState<I, C, R, SC>
impl<I, C, R, SC> HasNestedStageStatus for StdState<I, C, R, SC>
source§impl<I, C, R, SC> HasScalabilityMonitor for StdState<I, C, R, SC>
impl<I, C, R, SC> HasScalabilityMonitor for StdState<I, C, R, SC>
source§fn scalability_monitor(&self) -> &ScalabilityMonitor
fn scalability_monitor(&self) -> &ScalabilityMonitor
ScalabilityMonitor
source§fn scalability_monitor_mut(&mut self) -> &mut ScalabilityMonitor
fn scalability_monitor_mut(&mut self) -> &mut ScalabilityMonitor
ScalabilityMonitor
source§impl<I, C, R, SC> HasSolutions for StdState<I, C, R, SC>
impl<I, C, R, SC> HasSolutions for StdState<I, C, R, SC>
source§impl<I, C, R, SC> HasStartTime for StdState<I, C, R, SC>
impl<I, C, R, SC> HasStartTime for StdState<I, C, R, SC>
source§fn start_time(&self) -> &Duration
fn start_time(&self) -> &Duration
The starting time
source§fn start_time_mut(&mut self) -> &mut Duration
fn start_time_mut(&mut self) -> &mut Duration
The starting time (mutable)
source§impl<I, C, R, SC> HasTestcase for StdState<I, C, R, SC>
impl<I, C, R, SC> HasTestcase for StdState<I, C, R, SC>
source§impl<I, C, R, SC> Serialize for StdState<I, C, R, SC>where
C: Serialize + for<'a> Deserialize<'a>,
SC: Serialize + for<'a> Deserialize<'a>,
R: Serialize + for<'a> Deserialize<'a>,
impl<I, C, R, SC> Serialize for StdState<I, C, R, SC>where
C: Serialize + for<'a> Deserialize<'a>,
SC: Serialize + for<'a> Deserialize<'a>,
R: Serialize + for<'a> Deserialize<'a>,
impl<I, C, R, SC> State for StdState<I, C, R, SC>
Auto Trait Implementations§
impl<I, C, R, SC> Freeze for StdState<I, C, R, SC>
impl<I, C, R, SC> !RefUnwindSafe for StdState<I, C, R, SC>
impl<I, C, R, SC> !Send for StdState<I, C, R, SC>
impl<I, C, R, SC> !Sync for StdState<I, C, R, SC>
impl<I, C, R, SC> Unpin for StdState<I, C, R, SC>
impl<I, C, R, SC> !UnwindSafe for StdState<I, C, R, SC>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> FmtForward for T
impl<T> FmtForward for T
source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.source§impl<I, T> HasCurrentTestcase<I> for T
impl<I, T> HasCurrentTestcase<I> for T
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moresource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.source§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
TupleList
, of an Prepend::prepend()
call,
including the prepended entry.source§fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer ) -> Result<(), ErrorImpl>
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
source§impl<T> Tap for T
impl<T> Tap for T
source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moresource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.