aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorulfvonbelow <strilen@tilde.club>2023-01-29 05:33:40 -0600
committerMartin Schanzenbach <schanzen@gnunet.org>2023-02-06 14:17:22 +0900
commit64c5d0472e3bbfaf8cb6c7cb240a85fe190d7bbd (patch)
treef733c2a87d592fb26d8e09d0cca8a0c4afbeea7d
parentf4869a6bd1909281d2d3c8c7dfb667e80db7b308 (diff)
downloadgnunet-64c5d0472e3bbfaf8cb6c7cb240a85fe190d7bbd.tar.gz
gnunet-64c5d0472e3bbfaf8cb6c7cb240a85fe190d7bbd.zip
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>
-rw-r--r--src/setu/gnunet-service-setu_protocol.h2
1 files changed, 1 insertions, 1 deletions
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
218 /** 218 /**
219 * Size of the local set 219 * Size of the local set
220 */ 220 */
221 uint64_t set_size; 221 uint64_t set_size GNUNET_PACKED;
222}; 222};
223 223
224 224