com php-src: Also fix overflow in wordwrap: ext/standard/string.c

From: Date: Thu, 15 Sep 2016 08:03:18 +0000
Subject: com php-src: Also fix overflow in wordwrap: ext/standard/string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94545@lists.php.net to get a copy of this message
Commit: a777ec8df9d96fed9bb7e6b9b509678a90e656a6 Author: Stanislav Malyshev <stas@php.net> Mon, 5 Sep 2016 18:10:51 -0700 Committer: Ferenc Kovacs <tyra3l@gmail.com> Thu, 15 Sep 2016 10:03:18 +0200 Parents: 20fa323d53257a776bd7551ce7bdb2261cfe5420 Branches: PHP-5.6.26 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a777ec8df9d96fed9bb7e6b9b509678a90e656a6 Log: Also fix overflow in wordwrap Changed paths: M ext/standard/string.c Diff: diff --git a/ext/standard/string.c b/ext/standard/string.c index da473d9..9acbe03 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1011,7 +1011,7 @@ PHP_FUNCTION(wordwrap) /* free unused memory */ newtext = erealloc(newtext, newtextlen+1); - RETURN_STRINGL(newtext, newtextlen, 0); + RETVAL_STRINGL_CHECK(newtext, newtextlen, 0); } } /* }}} */

« previous php.cvs (#94545) next »