reserve extra 16 bytes for padding

This commit is contained in:
orignal 2016-01-01 17:39:12 -05:00
parent 2ba314d9d9
commit 9fc69db9eb

View File

@ -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<I2NPMessage> NewI2NPMessage ();