From 6d86e546f9f79f1bd2ed6bb3210bb4fb61eb056f Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 29 Jan 2017 00:19:28 -0500 Subject: [PATCH] Backed off ASSERT. PKCS12_PBKDF and other classes use truncated buffers --- integer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integer.cpp b/integer.cpp index f3b006fa..0fae68be 100644 --- a/integer.cpp +++ b/integer.cpp @@ -3356,10 +3356,10 @@ size_t Integer::MinEncodedSize(Signedness signedness) const return outputLen; } +// PKCS12_PBKDF and other classes use undersized buffers void Integer::Encode(byte *output, size_t outputLen, Signedness signedness) const { CRYPTOPP_ASSERT(output && outputLen); // NULL buffer - CRYPTOPP_ASSERT(outputLen >= MinEncodedSize()); // Undersized buffer ArraySink sink(output, outputLen); Encode(sink, outputLen, signedness); }