From ccb4e967cf944969cf725c684ceb46a0aff8dbc5 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 11 Mar 2015 12:17:38 -0400 Subject: [PATCH] fixed crash --- I2NPProtocol.h | 1 + 1 file changed, 1 insertion(+) diff --git a/I2NPProtocol.h b/I2NPProtocol.h index 4f426b9f..2dfa8fbb 100644 --- a/I2NPProtocol.h +++ b/I2NPProtocol.h @@ -145,6 +145,7 @@ namespace tunnel void Align (size_t alignment) { + if (len + alignment > maxLen) return; size_t rem = ((size_t)GetBuffer ()) % alignment; if (rem) {