mirror of
https://github.com/openharmony/third_party_expat.git
synced 2026-07-01 08:12:30 -04:00
fix CVE-2022-25314
Signed-off-by: lushi <lushi@huawei.com> Change-Id: Id2e8c914794b87e2629972af35b89fe3ec740e6c
This commit is contained in:
+1
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user