Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SerdeAny issue on libaf-fuzz #2715

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions fuzzers/forkserver/libafl-fuzz/src/fuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ use libafl::{
HasCorpus, HasCurrentTestcase, HasExecutions, HasLastReportTime, HasStartTime, StdState,
UsesState,
},
Error, Fuzzer, HasFeedback, HasMetadata, SerdeAny,
Error, Fuzzer, HasFeedback, HasMetadata,
};
#[cfg(not(feature = "fuzzbench"))]
use libafl_bolts::shmem::StdShMemProvider;
use libafl_bolts::{
core_affinity::CoreId,
current_nanos, current_time,
fs::get_unique_std_input_file,
impl_serdeany,
ownedref::OwnedRefMut,
rands::StdRand,
shmem::{ShMem, ShMemProvider, UnixShMemProvider},
Expand Down Expand Up @@ -644,9 +645,11 @@ pub fn fuzzer_target_mode(opt: &Opt) -> Cow<'static, str> {
Cow::Owned(res)
}

#[derive(Debug, Serialize, Deserialize, SerdeAny)]
#[derive(Debug, Serialize, Deserialize)]
pub struct IsInitialCorpusEntryMetadata {}

impl_serdeany!(IsInitialCorpusEntryMetadata);

pub fn run_fuzzer_with_stages<Z, ST, E, EM>(
opt: &Opt,
fuzzer: &mut Z,
Expand Down
Loading