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
 [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

Pull Requests

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: Sat Dec 21 13:01:31 2024 UTC