php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7338 unitialized variable in php_sybase_db.c
Submitted: 2000-10-19 08:36 UTC Modified: 2000-10-19 12:09 UTC
From: bmr at comtime dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.3pl1 OS: Linux
Private report: No CVE-ID: None
 [2000-10-19 08:36 UTC] bmr at comtime dot com
--- 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;

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-19 12:09 UTC] joey@php.net
Fixed in CVS. Thanks for your excellent report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 22:01:31 2024 UTC