Fix CRYPTOPP_UNUSED macro and CVE number

pull/291/head
Jeffrey Walton 2016-09-19 17:55:36 -04:00
parent adfe08d556
commit 6422ecfbeb
2 changed files with 4 additions and 4 deletions

View File

@ -141,7 +141,7 @@
// is only in effect when CRYPTOPP_DEBUG, DEBUG or _DEBUG is defined. Unlike // is only in effect when CRYPTOPP_DEBUG, DEBUG or _DEBUG is defined. Unlike
// Posix assert, CRYPTOPP_ASSERT is not affected by NDEBUG (or failure to // Posix assert, CRYPTOPP_ASSERT is not affected by NDEBUG (or failure to
// define it). // define it).
// Also see http://github.com/weidai11/cryptopp/issues/277, CVE-2010-4179 // Also see http://github.com/weidai11/cryptopp/issues/277, CVE-2016-7420
#if (defined(DEBUG) || defined(_DEBUG)) && !defined(CRYPTOPP_DEBUG) #if (defined(DEBUG) || defined(_DEBUG)) && !defined(CRYPTOPP_DEBUG)
# define CRYPTOPP_DEBUG 1 # define CRYPTOPP_DEBUG 1
#endif #endif
@ -750,7 +750,7 @@ NAMESPACE_END
// Portable way to suppress warnings. // Portable way to suppress warnings.
// Moved from misc.h due to circular depenedencies. // Moved from misc.h due to circular depenedencies.
#define CRYPTOPP_UNUSED(x) ((void)x) #define CRYPTOPP_UNUSED(x) ((void)(x))
// ************** Deprecated *************** // ************** Deprecated ***************

View File

@ -141,7 +141,7 @@
// is only in effect when CRYPTOPP_DEBUG, DEBUG or _DEBUG is defined. Unlike // is only in effect when CRYPTOPP_DEBUG, DEBUG or _DEBUG is defined. Unlike
// Posix assert, CRYPTOPP_ASSERT is not affected by NDEBUG (or failure to // Posix assert, CRYPTOPP_ASSERT is not affected by NDEBUG (or failure to
// define it). // define it).
// Also see http://github.com/weidai11/cryptopp/issues/277, CVE-2010-4179 // Also see http://github.com/weidai11/cryptopp/issues/277, CVE-2016-7420
#if (defined(DEBUG) || defined(_DEBUG)) && !defined(CRYPTOPP_DEBUG) #if (defined(DEBUG) || defined(_DEBUG)) && !defined(CRYPTOPP_DEBUG)
# define CRYPTOPP_DEBUG 1 # define CRYPTOPP_DEBUG 1
#endif #endif
@ -750,7 +750,7 @@ NAMESPACE_END
// Portable way to suppress warnings. // Portable way to suppress warnings.
// Moved from misc.h due to circular depenedencies. // Moved from misc.h due to circular depenedencies.
#define CRYPTOPP_UNUSED(x) ((void)x) #define CRYPTOPP_UNUSED(x) ((void)(x))
// ************** Deprecated *************** // ************** Deprecated ***************