php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8183 use of unitialized pointer in source code
Submitted: 2000-12-09 11:25 UTC Modified: 2000-12-09 15:07 UTC
From: dil at yandex-team dot ru Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 4.0.3pl1 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
25 + 1 = ?
Subscribe to this entry?

 
 [2000-12-09 11:25 UTC] dil at yandex-team dot ru
src file: ext/sybase/php_sybase_db.c line 257

*charset is declared, but not initalized.

In case sybase_conect() is called without the 4th argument (BTW dox describe only 3 args), charset gets random value and may cause incorrect database responses or memory protection fault (signal 11 on my FreeBSD).

Fix: replace declaration with
*charset=NULL

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-09 15:07 UTC] joey@php.net
This has been fixed in CVS, and will be in the 4.0.4 release.
Thank you for your report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC