Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 1 | From 3f288fefbd683d687bde3fc63964da64bc3c8a40 Mon Sep 17 00:00:00 2001 |
| 2 | From: Pascal Bach <pascal.bach@siemens.com> |
| 3 | Date: Wed, 11 Aug 2021 15:11:49 +0200 |
| 4 | Subject: [PATCH] fix missing expat definition |
| 5 | |
| 6 | Upstream-Status: Submitted [https://github.com/pocoproject/poco/pull/3414] |
| 7 | Signed-off-by: Pascal Bach <pascal.bach@siemens.com> |
| 8 | --- |
| 9 | XML/src/ParserEngine.cpp | 2 +- |
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/XML/src/ParserEngine.cpp b/XML/src/ParserEngine.cpp |
| 13 | index 82d477478..6213e555b 100644 |
| 14 | --- a/XML/src/ParserEngine.cpp |
| 15 | +++ b/XML/src/ParserEngine.cpp |
| 16 | @@ -504,7 +504,7 @@ void ParserEngine::init() |
| 17 | XML_SetParamEntityParsing(_parser, _externalParameterEntities ? XML_PARAM_ENTITY_PARSING_ALWAYS : XML_PARAM_ENTITY_PARSING_NEVER); |
| 18 | XML_SetUnknownEncodingHandler(_parser, handleUnknownEncoding, this); |
| 19 | |
| 20 | -#if XML_MAJOR_VERSION > 2 || (XML_MAJOR_VERSION == 2 && XML_MINOR_VERSION >= 4) |
| 21 | +#if XML_DTD && (XML_MAJOR_VERSION > 2 || (XML_MAJOR_VERSION == 2 && XML_MINOR_VERSION >= 4)) |
| 22 | if (_maximumAmplificationFactor > 1.0) |
| 23 | { |
| 24 | XML_SetBillionLaughsAttackProtectionMaximumAmplification(_parser, _maximumAmplificationFactor); |
| 25 | -- |
| 26 | 2.32.0 |
| 27 | |