From 399a1546de71f41598c15edada28e7f0d616f541 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 16 Sep 2016 11:27:15 -0400 Subject: Add CRYPTOPP_ASSERT (Issue 277, CVE-2016-7420) trap.h and CRYPTOPP_ASSERT has existed for over a year in Master. We deferred on the cut-over waiting for a minor version bump (5.7). We have to use it now due to CVE-2016-7420 --- files.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files.cpp') diff --git a/files.cpp b/files.cpp index 5ac45c6c..ff25dc7e 100644 --- a/files.cpp +++ b/files.cpp @@ -141,7 +141,7 @@ size_t FileStore::CopyRangeTo2(BufferedTransformation &target, lword &begin, lwo m_stream->seekg(newPosition); try { - assert(!m_waiting); + CRYPTOPP_ASSERT(!m_waiting); lword copyMax = end-begin; size_t blockedBytes = const_cast(this)->TransferTo2(target, copyMax, channel, blocking); begin += copyMax; -- cgit v1.2.1