Fix assert in FixedSizeAllocatorWithCleanup

This commit is contained in:
Jeffrey Walton 2020-12-24 13:09:38 -05:00
parent 45ab4a3cff
commit 5537d998a1
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -521,7 +521,7 @@ private:
// Verify the 16-byte alignment
CRYPTOPP_ASSERT(IsAlignedOn(p_array, 16));
// Verify allocated array with pad is large enough.
CRYPTOPP_ASSERT(p_array+S <= m_array+(S+PAD));
CRYPTOPP_ASSERT(p_array+S*sizeof(T) <= m_array+(S+PAD));
return p_array;
}