moved llmp out of events

This commit is contained in:
Dominik Maier 2021-02-02 03:46:46 +01:00
parent 1544345d68
commit 4b9cb2cd58
6 changed files with 10 additions and 15 deletions

View File

@ -6,10 +6,7 @@ extern crate alloc;
use core::{convert::TryInto, time::Duration};
use std::{thread, time};
use afl::{
events::{llmp, shmem::AflShmem},
AflError,
};
use afl::{llmp, shmem::AflShmem, AflError};
const TAG_SIMPLE_U32_V1: u32 = 0x51300321;
const TAG_MATH_RESULT_V1: u32 = 0x77474331;

View File

@ -1,6 +1,3 @@
pub mod llmp;
pub mod shmem;
use alloc::{
string::{String, ToString},
vec::Vec,
@ -11,22 +8,20 @@ use core::{
};
use serde::{Deserialize, Serialize};
use self::{
llmp::{LlmpClient, LlmpClientDescription, Tag},
shmem::ShMem,
};
#[cfg(feature = "std")]
use crate::shmem::AflShmem;
use crate::{
corpus::Corpus,
engines::State,
feedbacks::FeedbacksTuple,
inputs::Input,
llmp::{self, LlmpClient, LlmpClientDescription, Tag},
observers::ObserversTuple,
serde_anymap::Ptr,
shmem::ShMem,
utils::{current_time, Rand},
AflError,
};
#[cfg(feature = "std")]
use shmem::AflShmem;
#[derive(Debug, Copy, Clone)]
/// Indicate if an event worked or not

View File

@ -16,10 +16,12 @@ pub mod executors;
pub mod feedbacks;
pub mod generators;
pub mod inputs;
pub mod llmp;
pub mod metamap;
pub mod mutators;
pub mod observers;
pub mod serde_anymap;
pub mod shmem;
pub mod stages;
pub mod tuples;
pub mod utils;

View File

@ -1609,7 +1609,7 @@ mod tests {
Tag,
};
#[cfg(feature = "std")]
use crate::events::shmem::AflShmem;
use crate::shmem::AflShmem;
#[cfg(feature = "std")]
#[test]

View File

@ -11,9 +11,10 @@ use std::time::{SystemTime, UNIX_EPOCH};
use crate::{
corpus::Corpus,
engines::State,
events::{shmem::ShMem, LlmpEventManager, Stats},
events::{LlmpEventManager, Stats},
feedbacks::FeedbacksTuple,
inputs::Input,
shmem::ShMem,
AflError,
};