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

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