diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-09-16 14:51:48 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-09-16 14:51:48 -0400 |
commit | 91ca6c117de7ce68526e96f4f75e4813c69577dc (patch) | |
tree | c6b81e4f5a37ff0a5448c9ef4c3936ac9568c82e /modes.cpp | |
parent | 6847978f0a835d0a8a5f39372c3408b4239f9639 (diff) | |
download | cryptopp-git-91ca6c117de7ce68526e96f4f75e4813c69577dc.tar.gz |
Change from NDEBUG to CRYPTOPP_DEBUG in source files to ensure all debug behavior pivots on CRYPTOPP_DEBUG, and not NDEBUG (Issue 277, CVE-2016-7420)
Diffstat (limited to 'modes.cpp')
-rw-r--r-- | modes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,13 +7,13 @@ #include "modes.h"
#include "misc.h"
-//#ifndef NDEBUG
+//#if CRYPTOPP_DEBUG
#include "des.h"
//#endif
NAMESPACE_BEGIN(CryptoPP)
-#if !defined(NDEBUG) && !defined(CRYPTOPP_DOXYGEN_PROCESSING)
+#if CRYPTOPP_DEBUG && !defined(CRYPTOPP_DOXYGEN_PROCESSING)
void Modes_TestInstantiations()
{
CFB_Mode<DES>::Encryption m0;
|