com php-src: Merge branch 'PHP-5.6' into PHP-7.0: ext/standard/uuencode.c

From: Date: Thu, 10 Mar 2016 07:23:40 +0000
Subject: com php-src: Merge branch 'PHP-5.6' into PHP-7.0: ext/standard/uuencode.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91309@lists.php.net to get a copy of this message
Commit: 351201bc7b246f0ce793307113c598db5864fdd7 Author: Xinchen Hui <laruence@gmail.com> Thu, 10 Mar 2016 15:23:40 +0800 Parents: c3cf6f2a682eb25d0a52bef77386f155115efc13 915a3762ef71526d6deddf95bf42a6d5bf5211f3 Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=351201bc7b246f0ce793307113c598db5864fdd7 Log: Merge branch 'PHP-5.6' into PHP-7.0 * PHP-5.6: Fixed typo (partially fix for #71753) Conflicts: ext/standard/uuencode.c Bugs: https://bugs.php.net/71753 Changed paths: MM ext/standard/uuencode.c Diff: diff --cc ext/standard/uuencode.c index b2eea1f,cd35c28..e443337 --- a/ext/standard/uuencode.c +++ b/ext/standard/uuencode.c @@@ -173,8 -168,7 +173,8 @@@ PHPAPI zend_string *php_uudecode(char * s++; } - if ((len = total_len) > (p - *dest)) { + assert(p >= ZSTR_VAL(dest)); - if ((len = total_len > (size_t)(p - ZSTR_VAL(dest)))) { ++ if ((len = total_len) > (size_t)(p - ZSTR_VAL(dest))) { *p++ = PHP_UU_DEC(*s) << 2 | PHP_UU_DEC(*(s + 1)) >> 4; if (len > 1) { *p++ = PHP_UU_DEC(*(s + 1)) << 4 | PHP_UU_DEC(*(s + 2)) >> 2;

« previous php.cvs (#91309) next »