summaryrefslogtreecommitdiff
path: root/ext/xml
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2009-08-27 05:05:42 +0000
committerRasmus Lerdorf <rasmus@php.net>2009-08-27 05:05:42 +0000
commitb73fe4a9b6913101c852eb08daf2a9672f158c13 (patch)
tree76c4d1c23afc17f7ab362000d894801810f3c63b /ext/xml
parent137b9210f2543bce5a067d454644fdb8c6f88b12 (diff)
downloadphp-git-b73fe4a9b6913101c852eb08daf2a9672f158c13.tar.gz
This needs to be larger to avoid an overflow on the bit-shifting in this function
Diffstat (limited to 'ext/xml')
-rw-r--r--ext/xml/xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/xml/xml.c b/ext/xml/xml.c
index cd56b3c12c..537b320681 100644
--- a/ext/xml/xml.c
+++ b/ext/xml/xml.c
@@ -664,7 +664,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);