cvs: php-src(PHP_4_3) /ext/standard formatted_print.c
| From: | Thies C. Arntzen | Date: | Thu, 26 Aug 2004 13:41:59 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/standard formatted_print.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28465@lists.php.net to get a copy of this message | ||
thies Thu Aug 26 09:41:59 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/standard formatted_print.c
Log:
@- Fixed bug #29838 Memory leak in sprintf argument swapping. (Thies)
# by backporting one line from HEAD.
http://cvs.php.net/diff.php/php-src/ext/standard/formatted_print.c?r1=1.59.2.11&r2=1.59.2.12&ty=u
Index: php-src/ext/standard/formatted_print.c
diff -u php-src/ext/standard/formatted_print.c:1.59.2.11
php-src/ext/standard/formatted_print.c:1.59.2.12
--- php-src/ext/standard/formatted_print.c:1.59.2.11 Sun Jul 18 13:29:45 2004
+++ php-src/ext/standard/formatted_print.c Thu Aug 26 09:41:59 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: formatted_print.c,v 1.59.2.11 2004/07/18 17:29:45 iliaa Exp $ */
+/* $Id: formatted_print.c,v 1.59.2.12 2004/08/26 13:41:59 thies Exp $ */
#include <math.h> /* modf() */
#include "php.h"
@@ -630,6 +630,7 @@
if (multiuse) {
MAKE_STD_ZVAL(tmp);
*tmp = **(args[argnum]);
+ INIT_PZVAL(tmp);
zval_copy_ctor(tmp);
} else {
SEPARATE_ZVAL(args[argnum]);