From 9fc69db9ebd46d691ed5515008c6dbef4f33e81e Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 1 Jan 2016 17:39:12 -0500 Subject: [PATCH] reserve extra 16 bytes for padding --- I2NPProtocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/I2NPProtocol.h b/I2NPProtocol.h index a38ff23b..340aec7f 100644 --- a/I2NPProtocol.h +++ b/I2NPProtocol.h @@ -193,7 +193,7 @@ namespace tunnel struct I2NPMessageBuffer: public I2NPMessage { I2NPMessageBuffer () { buf = m_Buffer; maxLen = sz; }; - uint8_t m_Buffer[sz + 16]; + uint8_t m_Buffer[sz + 32]; // 16 alignment + 16 padding }; std::shared_ptr NewI2NPMessage ();