diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2009-08-27 05:05:42 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2009-08-27 05:05:42 +0000 |
| commit | e71fee906e24130518b9a52394e57e8f668920af (patch) | |
| tree | 1f0131623f5894cb705bec652055cebb8ebb6d92 /ext/xml/xml.c | |
| parent | 0d332b4edb1ab381e80f09c611968bea71a8860f (diff) | |
| download | php-git-e71fee906e24130518b9a52394e57e8f668920af.tar.gz | |
This needs to be larger to avoid an overflow on the bit-shifting in this function
Diffstat (limited to 'ext/xml/xml.c')
| -rw-r--r-- | ext/xml/xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
