From 26747226a67be806d0fed39e3762bca5f56ecccb Mon Sep 17 00:00:00 2001 From: Evan Richter Date: Wed, 24 Feb 2021 16:24:23 -0600 Subject: [PATCH] fix warnings in cargo doc --- libafl/src/bolts/llmp.rs | 4 ++++ libafl/src/utils.rs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libafl/src/bolts/llmp.rs b/libafl/src/bolts/llmp.rs index 4aa85d999b..0055354f10 100644 --- a/libafl/src/bolts/llmp.rs +++ b/libafl/src/bolts/llmp.rs @@ -6,6 +6,7 @@ client_out_map. If the ringbuf is filled up, they start place a LLMP_AGE_END_OF_PAGE_V1 msg and alloc a new shmap. Once the broker mapped a page, it flags it save for unmapping. +```text [client0] [client1] ... [clientN] | | / [client0_out] [client1_out] ... [clientN_out] @@ -14,6 +15,7 @@ Once the broker mapped a page, it flags it save for unmapping. |________________________________/ \|/ [broker] +``` After the broker received a new message for clientN, (clientN_out->current_id != last_message->message_id) the broker will copy the message content to its @@ -26,6 +28,7 @@ message in its queue. The LLMP_TAG_END_PAGE_V1 buf contains the new string to access the shared map. The clients then switch over to read from that new current map. +```text [broker] | [current_broadcast_map] @@ -36,6 +39,7 @@ current map. | | | \|/ \|/ \|/ [client0] [client1] ... [clientN] +``` In the future, if we need zero copy, the current_broadcast_map could instead list the client_out_map ID an offset for each message. In that case, the clients diff --git a/libafl/src/utils.rs b/libafl/src/utils.rs index e0dd6dd201..eadc7eb1d9 100644 --- a/libafl/src/utils.rs +++ b/libafl/src/utils.rs @@ -232,7 +232,7 @@ impl Lehmer64Rand { } /// Extremely quick rand implementation -/// see https://arxiv.org/pdf/2002.11331.pdf +/// see #[derive(Copy, Clone, Debug, Default, Serialize, Deserialize)] pub struct RomuTrioRand { x_state: u64, @@ -274,7 +274,7 @@ impl Rand for RomuTrioRand { } } -/// see https://arxiv.org/pdf/2002.11331.pdf +/// see #[derive(Copy, Clone, Debug, Default, Serialize, Deserialize)] pub struct RomuDuoJrRand { x_state: u64,