From 3e965ac9b327c46abca62320e221dbdaf1631239 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 5 May 2018 23:27:55 -0400 Subject: Back-off on Hash asserts (GH #652) The asserts were a little aggressive and caused very noisy Debug runs. The library itself was one of the biggest offenders. --- blake2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blake2.cpp b/blake2.cpp index e858f8c7..1af13fdb 100644 --- a/blake2.cpp +++ b/blake2.cpp @@ -356,7 +356,7 @@ void BLAKE2_Base::Restart(const BLAKE2_ParameterBlock& bloc template void BLAKE2_Base::Update(const byte *input, size_t length) { - CRYPTOPP_ASSERT(input != NULLPTR); + CRYPTOPP_ASSERT(!(input == NULLPTR && length != 0)); if (length == 0) { return; } State& state = *m_state.data(); -- cgit v1.2.1