]> 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 7e04b0aa86304696b36850c9a9b82823037e9ff1..d0ee2e9933f8367eb8c9c8d1c228c4fba366c20e 100644 (file)
@@ -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);