Blame SOURCES/expat-2.2.5-Prevent-integer-overflow-in-copyString.patch

589ceb
commit e5b609876e5a266725fba1c377b0ac95c737e6ed
589ceb
Author: Tomas Korbar <tkorbar@redhat.com>
589ceb
Date:   Mon May 2 12:44:06 2022 +0200
589ceb
589ceb
    Fix CVE-2022-25314
589ceb
589ceb
diff --git a/lib/xmlparse.c b/lib/xmlparse.c
589ceb
index 1f1413f..ceeec26 100644
589ceb
--- a/lib/xmlparse.c
589ceb
+++ b/lib/xmlparse.c
589ceb
@@ -7525,7 +7525,7 @@ static XML_Char *
589ceb
 copyString(const XML_Char *s,
589ceb
            const XML_Memory_Handling_Suite *memsuite)
589ceb
 {
589ceb
-    int charsRequired = 0;
589ceb
+    size_t charsRequired = 0;
589ceb
     XML_Char *result;
589ceb
 
589ceb
     /* First determine how long the string is */