svn: /php/php-src/ branches/PHP_5_2/ext/xml/xml.c branches/PHP_5_3/ext/xml/xml.c trunk/ext/xml/xml.c

From: Date: Thu, 27 Aug 2009 05:05:42 +0000
Subject: svn: /php/php-src/ branches/PHP_5_2/ext/xml/xml.c branches/PHP_5_3/ext/xml/xml.c trunk/ext/xml/xml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-60246@lists.php.net to get a copy of this message
rasmus Thu, 27 Aug 2009 05:05:42 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287790 Log: This needs to be larger to avoid an overflow on the bit-shifting in this function Changed paths: U php/php-src/branches/PHP_5_2/ext/xml/xml.c U php/php-src/branches/PHP_5_3/ext/xml/xml.c U php/php-src/trunk/ext/xml/xml.c Modified: php/php-src/branches/PHP_5_2/ext/xml/xml.c =================================================================== --- php/php-src/branches/PHP_5_2/ext/xml/xml.c 2009-08-27 04:48:24 UTC (rev 287789) +++ php/php-src/branches/PHP_5_2/ext/xml/xml.c 2009-08-27 05:05:42 UTC (rev 287790) @@ -559,7 +559,7 @@ { 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); Modified: php/php-src/branches/PHP_5_3/ext/xml/xml.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/xml/xml.c 2009-08-27 04:48:24 UTC (rev 287789) +++ php/php-src/branches/PHP_5_3/ext/xml/xml.c 2009-08-27 05:05:42 UTC (rev 287790) @@ -664,7 +664,7 @@ { 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); Modified: php/php-src/trunk/ext/xml/xml.c =================================================================== --- php/php-src/trunk/ext/xml/xml.c 2009-08-27 04:48:24 UTC (rev 287789) +++ php/php-src/trunk/ext/xml/xml.c 2009-08-27 05:05:42 UTC (rev 287790) @@ -667,7 +667,7 @@ { int pos = len; char *newbuf = emalloc(len + 1); - unsigned short c; + unsigned int c; char (*decoder)(unsigned short) = NULL; xml_encoding *enc = NULL;

« previous php.cvs (#60246) next »