gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 27/28: SETU: prevent misaligned access to StrataEstimatorMessag


From: gnunet
Subject: [gnunet] 27/28: SETU: prevent misaligned access to StrataEstimatorMessage.set_size.
Date: Mon, 06 Feb 2023 06:19:29 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit 64c5d0472e3bbfaf8cb6c7cb240a85fe190d7bbd
Author: ulfvonbelow <strilen@tilde.club>
AuthorDate: Sun Jan 29 05:33:40 2023 -0600

    SETU: prevent misaligned access to StrataEstimatorMessage.set_size.
    
    Gnunet's messages aren't guaranteed to be 8-byte-aligned. The ones delivered
    via MST are (at least, whenever it matters), but not the ones delivered by
    GNUNET_MQ_inject_message, such as is done by CADET.
    
    Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
---
 src/setu/gnunet-service-setu_protocol.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/setu/gnunet-service-setu_protocol.h 
b/src/setu/gnunet-service-setu_protocol.h
index c2a166e60..c896166ce 100644
--- a/src/setu/gnunet-service-setu_protocol.h
+++ b/src/setu/gnunet-service-setu_protocol.h
@@ -218,7 +218,7 @@ struct StrataEstimatorMessage
   /**
    * Size of the local set
    */
-  uint64_t set_size;
+  uint64_t set_size GNUNET_PACKED;
 };
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]