iliaa Mon Jan 8 14:25:49 2007 UTC
Modified files:
/php-src/ext/standard string.c
Log:
MFB: Use safe_emalloc() rather then emalloc()
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.629&r2=1.630&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.629 php-src/ext/standard/string.c:1.630
--- php-src/ext/standard/string.c:1.629 Mon Jan 1 09:29:32 2007
+++ php-src/ext/standard/string.c Mon Jan 8 14:25:49 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.629 2007/01/01 09:29:32 sebastian Exp $ */
+/* $Id: string.c,v 1.630 2007/01/08 14:25:49 iliaa Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -4914,7 +4914,7 @@
}
Z_STRLEN_P(result) = len + (char_count * (to_len - 1));
- Z_STRVAL_P(result) = target = emalloc(Z_STRLEN_P(result) + 1);
+ Z_STRVAL_P(result) = target = safe_emalloc(char_count, to_len, len);
Z_TYPE_P(result) = IS_STRING;
if (case_sensitivity) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php