From c13dccfda6abc0a7949f59cd3109ce49b06d9afa Mon Sep 17 00:00:00 2001 From: Valentin Huber Date: Sat, 21 Dec 2024 20:15:49 +0000 Subject: [PATCH] Fix docs --- libafl/src/mutators/havoc_mutations.rs | 3 +-- libafl_bolts/src/shmem.rs | 9 +++++---- libafl_bolts/src/tuples.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libafl/src/mutators/havoc_mutations.rs b/libafl/src/mutators/havoc_mutations.rs index 9f586bd461..f2d1c512e3 100644 --- a/libafl/src/mutators/havoc_mutations.rs +++ b/libafl/src/mutators/havoc_mutations.rs @@ -2,9 +2,8 @@ use libafl_bolts::{ map_tuple_list_type, merge_tuple_list_type, - tuples::{Map, Merge}, + tuples::{tuple_list, tuple_list_type, Map, Merge}, }; -use tuple_list::{tuple_list, tuple_list_type}; use crate::mutators::{ mapping::{ToMappingMutator, ToOptionalMutator}, diff --git a/libafl_bolts/src/shmem.rs b/libafl_bolts/src/shmem.rs index 5f1c00e7f2..7df2bbe154 100644 --- a/libafl_bolts/src/shmem.rs +++ b/libafl_bolts/src/shmem.rs @@ -624,12 +624,12 @@ where /// Is needed on top. #[cfg(all(unix, feature = "std", not(target_os = "haiku")))] pub mod unix_shmem { - /// Mmap [`ShMem`] for Unix - #[cfg(not(target_os = "android"))] - pub use default::MmapShMem; /// Mmap [`ShMemProvider`] for Unix #[cfg(not(target_os = "android"))] pub use default::MmapShMemProvider; + /// Mmap [`ShMem`] for Unix + #[cfg(not(target_os = "android"))] + pub use default::{MmapShMem, MAX_MMAP_FILENAME_LEN}; #[cfg(doc)] use crate::shmem::{ShMem, ShMemProvider}; @@ -669,7 +669,8 @@ pub mod unix_shmem { Error, }; - const MAX_MMAP_FILENAME_LEN: usize = 20; + /// The size of the buffer of the filename of mmap mapped memory regions + pub const MAX_MMAP_FILENAME_LEN: usize = 20; /// Mmap-based The sharedmap impl for unix using [`shm_open`] and [`mmap`]. /// Default on `MacOS` and `iOS`, where we need a central point to unmap diff --git a/libafl_bolts/src/tuples.rs b/libafl_bolts/src/tuples.rs index 45990ece5b..dd28d1a9e0 100644 --- a/libafl_bolts/src/tuples.rs +++ b/libafl_bolts/src/tuples.rs @@ -868,7 +868,7 @@ macro_rules! map_tuple_list_type { }; } -/// Merges the types of two merged [`tuple_list`]s +/// Merges the types of two merged [`tuple_list!`]s /// /// ```rust /// use libafl_bolts::{merge_tuple_list_type, tuples::{Merge, tuple_list, tuple_list_type}};