less noisy
This commit is contained in:
parent
d011775528
commit
245f424457
@ -7,6 +7,7 @@ use core::time::Duration;
|
||||
use core::{marker::PhantomData, time};
|
||||
#[cfg(feature = "std")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
use shmem::AflShmem;
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
use self::{
|
||||
@ -725,6 +726,29 @@ where
|
||||
phantom: PhantomData<(C, E, OT, FT, I, R)>,
|
||||
}
|
||||
|
||||
impl<C, E, OT, FT, I, R, ST> LlmpEventManager<C, E, OT, FT, I, R, AflShmem, ST>
|
||||
where
|
||||
C: Corpus<I, R>,
|
||||
E: Executor<I>,
|
||||
OT: ObserversTuple,
|
||||
FT: FeedbacksTuple<I>,
|
||||
I: Input,
|
||||
R: Rand,
|
||||
ST: Stats,
|
||||
{
|
||||
#[cfg(feature = "std")]
|
||||
/// Create llmp on a port
|
||||
/// If the port is not yet bound, it will act as broker
|
||||
/// Else, it will act as client.
|
||||
pub fn new_on_port_std(stats: ST) -> Result<Self, AflError> {
|
||||
Ok(Self {
|
||||
llmp: llmp::LlmpConnection::on_port(port)?,
|
||||
stats: stats,
|
||||
phantom: PhantomData,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl<C, E, OT, FT, I, R, SH, ST> LlmpEventManager<C, E, OT, FT, I, R, SH, ST>
|
||||
where
|
||||
C: Corpus<I, R>,
|
||||
|
@ -47,8 +47,7 @@ pub extern "C" fn afl_libfuzzer_main() {
|
||||
|
||||
let stats = SimpleStats::new(|s| println!("{}", s));
|
||||
|
||||
let mut mgr =
|
||||
LlmpEventManager::<_, _, _, _, _, _, AflShmem, _>::new_on_port(1337, stats).unwrap();
|
||||
let mut mgr = LlmpEventManager::new_on_port_std(1337, stats).unwrap();
|
||||
if mgr.is_broker() {
|
||||
println!("Doing broker things. Run this tool again to start fuzzing in a client.");
|
||||
mgr.broker_loop().unwrap();
|
||||
|
Loading…
x
Reference in New Issue
Block a user