From: Rasmus Lerdorf Date: Thu, 27 Aug 2009 05:05:42 +0000 (+0000) Subject: This needs to be larger to avoid an overflow on the bit-shifting in this function X-Git-Tag: php-5.2.11RC2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e71fee906e24130518b9a52394e57e8f668920af;p=php This needs to be larger to avoid an overflow on the bit-shifting in this function --- diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 7e04b0aa86..d0ee2e9933 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -559,7 +559,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);