com php-src: Also fix overflow in wordwrap: ext/standard/string.c
| From: | Stanislav Malyshev | Date: | Tue, 13 Sep 2016 04:04:23 +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-94447@lists.php.net to get a copy of this message | ||
Commit: 65c8caafa83ca78a8b2fa22257b4dea85b6114e5
Author: Stanislav Malyshev <stas@php.net> Mon, 5 Sep 2016 18:10:51 -0700
Parents: 6d55ba265637d6adf0ba7e9c9ef11187d1ec2f5b
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=65c8caafa83ca78a8b2fa22257b4dea85b6114e5
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);
}
}
/* }}} */