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

Algorithm to choose to serialize the observers or not #1227

Merged
merged 56 commits into from
Jul 10, 2023
Merged

Conversation

andreafioraldi
Copy link
Member

No description provided.

libafl/src/events/llmp.rs Outdated Show resolved Hide resolved
@@ -91,7 +91,7 @@ where
self.inner.log(state, severity_level, message)
}

fn serialize_observers<OT>(&mut self, observers: &OT) -> Result<Vec<u8>, Error>
fn serialize_observers<OT>(&mut self, observers: &OT) -> Result<Option<Vec<u8>>, Error>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to maybe_serialize_observers?

libafl/src/events/centralized.rs Outdated Show resolved Hide resolved
@@ -432,11 +432,11 @@ pub trait EventFirer: UsesState {
}

/// Serialize all observers for this type and manager
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should adapt the docstring here (and/or add an extra function for maybe_)

libafl/Cargo.toml Outdated Show resolved Hide resolved
libafl/Cargo.toml Outdated Show resolved Hide resolved
@andreafioraldi andreafioraldi merged commit 6536840 into main Jul 10, 2023
@andreafioraldi andreafioraldi deleted the adap_conf branch July 10, 2023 11:42
@andreafioraldi andreafioraldi restored the adap_conf branch July 10, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants