diff --git a/backport-009-CVE-2024-8176.patch b/backport-009-CVE-2024-8176.patch index 7170b13daff314560152d6faf94d7835f54f1661..16276d134ae21af9de7d02209b716792b5d23e47 100644 --- a/backport-009-CVE-2024-8176.patch +++ b/backport-009-CVE-2024-8176.patch @@ -23,7 +23,7 @@ diff --git a/lib/xmlparse.c b/lib/xmlparse.c index 9dda309..325d5e7 100644 --- a/lib/xmlparse.c +++ b/lib/xmlparse.c -@@ -6004,38 +6004,46 @@ internalEntityProcessor(XML_Parser parser, const char *s, const char *end, +@@ -6004,38 +6004,48 @@ internalEntityProcessor(XML_Parser parser, const char *s, const char *end, return XML_ERROR_UNEXPECTED_STATE; entity = openEntity->entity; @@ -59,7 +59,9 @@ index 9dda309..325d5e7 100644 + result = doContent(parser, openEntity->startTagLevel, + parser->m_internalEncoding, textStart, textEnd, &next, + XML_FALSE, XML_ACCOUNT_ENTITY_EXPANSION); ++#ifdef XML_DTD + } ++#endif - if (result != XML_ERROR_NONE) - return result;