From e80aeccdd1d5f880677bacb675940c56280ebd0c Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 13 Jun 2026 16:12:15 -0400 Subject: [PATCH] fixed typo --- libi2pd/Gzip.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libi2pd/Gzip.cpp b/libi2pd/Gzip.cpp index 4be8684c..70196b80 100644 --- a/libi2pd/Gzip.cpp +++ b/libi2pd/Gzip.cpp @@ -1,5 +1,5 @@ /* -* Copyright (c) 2013-2022, The PurpleI2P Project +* Copyright (c) 2013-2026, The PurpleI2P Project * * This file is part of Purple i2pd project and licensed under BSD3 * @@ -17,7 +17,7 @@ namespace i2p { namespace data { - const size_t GZIP_CHUNK_SIZE = 16384; + constexpr size_t GZIP_CHUNK_SIZE = 16384; GzipInflator::GzipInflator (): m_IsDirty (false) { @@ -36,7 +36,7 @@ namespace data if (in[10] == 0x01) // non compressed { size_t len = bufle16toh (in + 11); - if (len + 23 < inLen) + if (len + 23 > inLen) { LogPrint (eLogError, "Gzip: Incorrect length"); return 0;