cvs: php4 /ext/gd gd.c
| From: | Ilia Alshanetsky | Date: | Fri, 24 Jan 2003 19:23:53 +0000 |
| Subject: | cvs: php4 /ext/gd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18147@lists.php.net to get a copy of this message | ||
iliaa Fri Jan 24 14:23:53 2003 EDT
Modified files:
/php4/ext/gd gd.c
Log:
Fixed bug #21533 (a rare condition where error can remain undefined and
result in undefined behavior when it is used without being initialized).
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.247 php4/ext/gd/gd.c:1.248
--- php4/ext/gd/gd.c:1.247 Fri Jan 24 11:23:11 2003
+++ php4/ext/gd/gd.c Fri Jan 24 14:23:53 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.247 2003/01/24 16:23:11 iliaa Exp $ */
+/* $Id: gd.c,v 1.248 2003/01/24 19:23:53 iliaa Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -2943,7 +2943,7 @@
int col, x, y, l=0, i, brect[8];
double ptsize, angle;
unsigned char *str = NULL, *fontname = NULL;
- char *error;
+ char *error = NULL;
int argc;
#if HAVE_GD_STRINGFTEX
gdFTStringExtra strex;