From 550f9de41ac86fc0403d1cc5208f1cede8b7445c Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 12 Mar 2015 07:31:46 -0400 Subject: [PATCH] fixed memory corruption --- I2NPProtocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/I2NPProtocol.h b/I2NPProtocol.h index 2dfa8fbb..294abcc9 100644 --- a/I2NPProtocol.h +++ b/I2NPProtocol.h @@ -189,7 +189,7 @@ namespace tunnel struct I2NPMessageBuffer: public I2NPMessage { I2NPMessageBuffer () { buf = m_Buffer; maxLen = sz; }; - uint8_t m_Buffer[sz]; + uint8_t m_Buffer[sz + 16]; }; I2NPMessage * NewI2NPMessage ();