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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dil at yandex-team dot ru
New email:
PHP Version: OS:

 

 [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

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: Sun Sep 08 06:01:27 2024 UTC