From 5c8c3be9e506c7d31e0288dc0561b8db85046860 Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Tue, 8 Jun 2021 15:45:35 +0200 Subject: [PATCH] print sender id --- libafl/src/events/llmp.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libafl/src/events/llmp.rs b/libafl/src/events/llmp.rs index 9f6cf73164..9a4eee9bf6 100644 --- a/libafl/src/events/llmp.rs +++ b/libafl/src/events/llmp.rs @@ -446,10 +446,15 @@ where fn process(&mut self, fuzzer: &mut Z, state: &mut S, executor: &mut E) -> Result { // TODO: Get around local event copy by moving handle_in_client let mut events = vec![]; + let self_id = self.llmp.sender.id; while let Some((sender_id, tag, _flags, msg)) = self.llmp.recv_buf_with_flags()? { if tag == _LLMP_TAG_EVENT_TO_BROKER { panic!("EVENT_TO_BROKER parcel should not have arrived in the client!"); } + println!("[{}] Message from {}", self_id, sender_id); + if sender_id == self_id { + continue; + } #[cfg(not(feature = "llmp_compression"))] let event_bytes = msg; #[cfg(feature = "llmp_compression")]