From 8717d0736969bf777b3ab0138f8ed63816d0f606 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Sat, 1 May 2021 13:47:44 +0200 Subject: [PATCH] some clippy warning ignored --- libafl/src/bolts/llmp.rs | 3 +++ libafl/src/bolts/os/unix_signals.rs | 2 +- libafl/src/executors/inprocess.rs | 4 ++++ libafl/src/stages/mutational.rs | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libafl/src/bolts/llmp.rs b/libafl/src/bolts/llmp.rs index 439e212399..580e51044c 100644 --- a/libafl/src/bolts/llmp.rs +++ b/libafl/src/bolts/llmp.rs @@ -1297,6 +1297,7 @@ where } /// Receive the buffer, also reading the LLMP internal message flags + #[allow(clippy::type_complexity)] #[inline] pub fn recv_buf_with_flags(&mut self) -> Result, Error> { unsafe { @@ -1780,6 +1781,7 @@ where /// This function returns the ShMemDescription the client uses to place incoming messages. /// The thread exits, when the remote broker disconnects. #[cfg(feature = "std")] + #[allow(clippy::let_and_return)] fn b2b_thread_on( mut stream: TcpStream, shmem_provider: &SP, @@ -2353,6 +2355,7 @@ where self.receiver.recv_buf_blocking() } + #[allow(clippy::type_complexity)] pub fn recv_buf_with_flags(&mut self) -> Result, Error> { self.receiver.recv_buf_with_flags() } diff --git a/libafl/src/bolts/os/unix_signals.rs b/libafl/src/bolts/os/unix_signals.rs index 0254b32657..b661f6985d 100644 --- a/libafl/src/bolts/os/unix_signals.rs +++ b/libafl/src/bolts/os/unix_signals.rs @@ -25,7 +25,7 @@ pub use libc::{c_void, siginfo_t}; #[derive(IntoPrimitive, TryFromPrimitive, Clone, Copy)] #[repr(i32)] -#[allow(clippy::clippy::pub_enum_variant_names)] +#[allow(clippy::pub_enum_variant_names)] pub enum Signal { SigAbort = SIGABRT, SigBus = SIGBUS, diff --git a/libafl/src/executors/inprocess.rs b/libafl/src/executors/inprocess.rs index 0b21ca6745..ffaece9f05 100644 --- a/libafl/src/executors/inprocess.rs +++ b/libafl/src/executors/inprocess.rs @@ -380,6 +380,10 @@ mod unix_signal_handler { } } + /// Crash-Handler for in-process fuzzing. + /// Will be used for signal handling. + /// It will store the current State to shmem, then exit. + #[allow(clippy::too_many_lines)] pub unsafe fn inproc_crash_handler( _signal: Signal, _info: siginfo_t, diff --git a/libafl/src/stages/mutational.rs b/libafl/src/stages/mutational.rs index 0809f938d8..a85a7d1dc3 100644 --- a/libafl/src/stages/mutational.rs +++ b/libafl/src/stages/mutational.rs @@ -39,7 +39,7 @@ where fn iterations(&self, state: &mut S) -> usize; /// Runs this (mutational) stage for the given testcase - #[allow(clippy::clippy::cast_possible_wrap)] // more than i32 stages on 32 bit system - highly unlikely... + #[allow(clippy::cast_possible_wrap)] // more than i32 stages on 32 bit system - highly unlikely... fn perform_mutational( &mut self, state: &mut S,