mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-14 16:20:45 +00:00
Prevent integer overflow in copyString
The copyString function is only used for encoding string supplied by the library user.
This commit is contained in:
parent
81b89678e2
commit
efcb347440
1 changed files with 1 additions and 1 deletions
|
@ -7412,7 +7412,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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue