From 2f3a65351cedc30ecf3ca5e8c96caa7dbd9a10ea Mon Sep 17 00:00:00 2001 From: aaasssddd <1107893276@qq.com> Date: Fri, 28 Nov 2025 08:30:09 +0000 Subject: [PATCH] fix syntax errors Signed-off-by: aaasssddd <1107893276@qq.com> --- backport-009-CVE-2024-8176.patch | 4 +++- expat.spec | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/backport-009-CVE-2024-8176.patch b/backport-009-CVE-2024-8176.patch index 7170b13..16276d1 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 53e703c..d7e7c25 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 -- Gitee