This commit is contained in:
Andrea Fioraldi 2020-12-16 13:50:15 +01:00
parent 6f994990c0
commit dc86af2b94
2 changed files with 4 additions and 0 deletions

View File

@ -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<u8>,

View File

@ -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) }
}