cvs: php4(PHP_4_3) /ext/standard string.c
| From: | Ilia Alshanetsky | Date: | Wed, 16 Apr 2003 01:07:21 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20293@lists.php.net to get a copy of this message | ||
iliaa Tue Apr 15 21:07:21 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard string.c
Log:
MFH
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.333.2.21 php4/ext/standard/string.c:1.333.2.22
--- php4/ext/standard/string.c:1.333.2.21 Thu Apr 3 01:21:21 2003
+++ php4/ext/standard/string.c Tue Apr 15 21:07:20 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.333.2.21 2003/04/03 06:21:21 derick Exp $ */
+/* $Id: string.c,v 1.333.2.22 2003/04/16 01:07:20 iliaa Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -4091,7 +4091,10 @@
str_len = format_len + 1024;
str = emalloc(str_len);
- str_len = strfmon(str, str_len, format, value);
+ if ((str_len = strfmon(str, str_len, format, value)) < 0) {
+ efree(str);
+ RETURN_FALSE;
+ }
str[str_len] = 0;
RETURN_STRINGL(erealloc(str, str_len + 1), str_len, 0);