|  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:
Solve the problem:
46 + 38 = ?
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-09 15:07 UTC]
This has been fixed in CVS, and will be in the 4.0.4 release.
Thank you for your report.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 23 03:01:26 2023 UTC