rasmus                                   Fri, 06 Aug 2010 18:19:23 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=301934

Log:
Do these ops in the right order here.  First of many fixes for
bug #52550

Bug: http://bugs.php.net/52550 (Analyzed) integer undefined behaviors executed 
during "make test"
      
Changed paths:
    U   php/php-src/trunk/ext/standard/var_unserializer.re

Modified: php/php-src/trunk/ext/standard/var_unserializer.re
===================================================================
--- php/php-src/trunk/ext/standard/var_unserializer.re  2010-08-06 15:40:41 UTC 
(rev 301933)
+++ php/php-src/trunk/ext/standard/var_unserializer.re  2010-08-06 18:19:23 UTC 
(rev 301934)
@@ -231,7 +231,7 @@
        while (1) {
                cursor = (char)*p;
                if (cursor >= '0' && cursor <= '9') {
-                       result = result * 10 + cursor - '0';
+                       result = result * 10 + (size_t)(cursor - (unsigned 
char)'0');
                } else {
                        break;
                }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to