PHP 4.0 Bug #7338: unitialized variable in php_sybase_db.c
| From: | bmr at comtime dot com | Date: | Thu, 19 Oct 2000 12:36:18 +0000 |
| Subject: | PHP 4.0 Bug #7338: unitialized variable in php_sybase_db.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35525@lists.php.net to get a copy of this message | ||
From: bmr@comtime.com
Operating system: Linux
PHP version: 4.0.3pl1
PHP Bug Type: Reproduceable crash
Bug description: unitialized variable in php_sybase_db.c
--- php_sybase_db.c Sun Sep 3 13:43:09 2000
+++ php_sybase_db-fixed.c Thu Oct 19 08:38:27 2000
@@ -254,7 +254,7 @@
static void
php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS,int
persistent)
{
-
char *user,*passwd,*host,*charset;
+
char *user,*passwd,*host,*charset=NULL;
char *hashed_details;
int hashed_details_length;
sybase_link sybase,*sybase_ptr;
--
Edit Bug report at: http://bugs.php.net/?id=7338&edit=1