fix CVE-2022-25314

Signed-off-by: lushi <lushi@huawei.com>
Change-Id: Id2e8c914794b87e2629972af35b89fe3ec740e6c
This commit is contained in:
lushi
2022-02-24 19:51:34 +08:00
parent 1ce0e2f2bd
commit 1e3ba6b45b
+1 -1
View File
@@ -7419,7 +7419,7 @@ getElementType(XML_Parser parser, const ENCODING *enc, const char *ptr,
static XML_Char *
copyString(const XML_Char *s, const XML_Memory_Handling_Suite *memsuite) {
int charsRequired = 0;
size_t charsRequired = 0;
XML_Char *result;
/* First determine how long the string is */