]> granicus.if.org Git - php/commitdiff
This needs to be larger to avoid an overflow on the bit-shifting in this function
authorRasmus Lerdorf <rasmus@php.net>
Thu, 27 Aug 2009 05:05:42 +0000 (05:05 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Thu, 27 Aug 2009 05:05:42 +0000 (05:05 +0000)
ext/xml/xml.c

index 53b541bc832f1cb92592f81eff49df6556b53293..184a030fc5976c753ecb5b1a5d0500d93063f400 100644 (file)
@@ -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;