Skip to content

Commit

Permalink
This needs to be larger to avoid an overflow on the bit-shifting in t…
Browse files Browse the repository at this point in the history
…his function
  • Loading branch information
rlerdorf committed Aug 27, 2009
1 parent 137b921 commit b73fe4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/xml/xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ PHPAPI char *xml_utf8_decode(const XML_Char *s, int len, int *newlen, const XML_
{
int pos = len;
char *newbuf = emalloc(len + 1);
unsigned short c;
unsigned int c;
char (*decoder)(unsigned short) = NULL;
xml_encoding *enc = xml_get_encoding(encoding);

Expand Down

0 comments on commit b73fe4a

Please sign in to comment.