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.4.0alpha1~191^2~2743 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ca2db41a9d8d952d30cd5cce4f67e17d17e5bce;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 53b541bc83..184a030fc5 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -667,7 +667,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 = NULL;