PHP 4.0 Bug #8183 Updated: use of unitialized pointer in source code
| From: | joey@php.net | Date: | Sat, 09 Dec 2000 20:07:36 +0000 |
| Subject: | PHP 4.0 Bug #8183 Updated: use of unitialized pointer in source code | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40693@lists.php.net to get a copy of this message | ||
ID: 8183
Updated by: joey
Reported By: dil@yandex-team.ru
Old-Status: Open
Status: Closed
Bug Type: Sybase (dblib) related
Assigned To:
Comments:
This has been fixed in CVS, and will be in the 4.0.4 release.
Thank you for your report.
Previous Comments:
---------------------------------------------------------------------------
[2000-12-09 11:25:47] dil@yandex-team.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
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8183