PHP 4.0 Bug #8183: use of unitialized pointer in source code

From: Date: Sat, 09 Dec 2000 16:25:47 +0000
Subject: PHP 4.0 Bug #8183: use of unitialized pointer in source code
Groups: php.dev 
Request: Send a blank email to php-dev+get-40649@lists.php.net to get a copy of this message
From: dil@yandex-team.ru Operating system: any PHP version: 4.0.3pl1 PHP Bug Type: Sybase (dblib) related Bug description: use of unitialized pointer in source code 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 -- Edit Bug report at: http://bugs.php.net/?id=8183&edit=1

« previous php.dev (#40649) next »