You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
7 years ago
|
Description: CVE-2017-6845
|
||
|
Acked-By: Mattia Rizzolo <mattia@debian.org>
|
||
|
Bug-Debian: https://bugs.debian.org/861562
|
||
|
Origin: https://sourceforge.net/p/podofo/code/1892
|
||
|
|
||
|
--- a/src/base/PdfError.h
|
||
|
+++ b/src/base/PdfError.h
|
||
|
@@ -167,18 +167,8 @@
|
||
|
*
|
||
|
* Evaluate `x' as a binary predicate and if it is true, raise a logic error with the
|
||
|
* info string `y' .
|
||
|
- *
|
||
|
- * This macro will be undefined when NDEBUG is set, so it's compiled out for release
|
||
|
- * builds. Use it for expensive or extremely frequent sanity checking.
|
||
|
- *
|
||
|
- * We define it then UNDEF it to help out doxygen.
|
||
|
*/
|
||
|
-#ifndef NDEBUG
|
||
|
- // Woo for double-negatives. We define PODOFO_RAISE_LOGIC_IF unless we've been told not to by NDEBUG.
|
||
|
- #define PODOFO_RAISE_LOGIC_IF( x, y ) { if (x) throw ::PoDoFo::PdfError( ePdfError_InternalLogic, __FILE__, __LINE__, y ); };
|
||
|
-#else
|
||
|
- #define PODOFO_RAISE_LOGIC_IF( x, y ) {};
|
||
|
-#endif
|
||
|
+#define PODOFO_RAISE_LOGIC_IF( x, y ) { if (x) throw ::PoDoFo::PdfError( ePdfError_InternalLogic, __FILE__, __LINE__, y ); };
|
||
|
|
||
|
class PODOFO_API PdfErrorInfo {
|
||
|
public:
|