diff --git a/afl/src/events/mod.rs b/afl/src/events/mod.rs index 5992985e12..5601bdebce 100644 --- a/afl/src/events/mod.rs +++ b/afl/src/events/mod.rs @@ -539,6 +539,8 @@ pub enum LLMPEventKind<'a, I> where I: Input, { + // TODO use an ID to keep track of the original index in the sender Corpus + // The sender can then use it to send Testcase metadatas with CustomEvent NewTestcase { input: Ptr<'a, I>, observers_buf: Vec, diff --git a/afl/src/serde_anymap.rs b/afl/src/serde_anymap.rs index a2b2b7ebc0..94062b567d 100644 --- a/afl/src/serde_anymap.rs +++ b/afl/src/serde_anymap.rs @@ -4,6 +4,8 @@ use alloc::boxed::Box; use alloc::vec::Vec; use core::any::{Any, TypeId}; +// yolo + pub fn pack_type_id(id: u64) -> TypeId { unsafe { *(&id as *const u64 as *const TypeId) } }