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; diff --git a/expat.spec b/expat.spec index 53e703c3091dd36c967928a44ee0b5a49c413ac8..d7e7c258acf05a5923f7041285b242a0644561fd 100644 --- a/expat.spec +++ b/expat.spec @@ -1,7 +1,7 @@ %define Rversion %(echo %{version} | sed -e 's/\\./_/g' -e 's/^/R_/') Name: expat Version: 2.5.0 -Release: 12 +Release: 13 Summary: An XML parser library License: MIT URL: https://libexpat.github.io/ @@ -107,6 +107,9 @@ find %{buildroot} -type f -name changelog -delete %{_mandir}/man1/* %changelog +* Fri Nov 28 2025 zhuofeng <1107893276@qq.com> - 2.5.0-13 +- fix syntax errors + * Tue Oct 21 2025 fuanan - 2.5.0-12 - backport upstream patch