Skip to content

Commit

Permalink
Merge pull request #560 from ferivoz/copy
Browse files Browse the repository at this point in the history
[CVE-2022-25314] lib: Prevent integer overflow in copyString
  • Loading branch information
hartwork committed Feb 18, 2022
2 parents 8921494 + efcb347 commit d477fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expat/lib/xmlparse.c
Expand Up @@ -7459,7 +7459,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 */
Expand Down

0 comments on commit d477fdd

Please sign in to comment.