PHP 4.0 Bug #7350 Updated: crypt causes floating point exception
| From: | sniper@php.net | Date: | Tue, 28 Nov 2000 23:06:52 +0000 |
| Subject: | PHP 4.0 Bug #7350 Updated: crypt causes floating point exception | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39424@lists.php.net to get a copy of this message | ||
ID: 7350
Updated by: sniper
Reported By: ben@henshaw.net
Status: Closed
Bug Type: Reproduceable crash
Assigned To:
Comments:
User feedback:
-----------
I just tested crypt with the snap "php4-200011281345" and it
appears that the bug has been fixed. No more floating point exceptions.
-----------
Closed.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-11-21 04:33:21] sniper@php.net
Could you try latest snapshot from http://snaps.php.net/
to verify if this is still happening ?
--Jani
---------------------------------------------------------------------------
[2000-10-19 16:18:33] ben@henshaw.net
The crypt function is causing a floting point exception when used without a salt. I have been able
to reproduce this crash using this simple code:
<? echo crypt('blah'); ?>
My PHP is configuring is this:
'--disable-debug'
'--enable-track-vars'
'--with-apxs=/usr/local/apache/bin/apxs'
'--with-mysql'
'--with-gdbm=/usr/local'
'--enable-versioning'
'--with-pdflib'
'--with-cybercash=/root/src/mck/mck-3.2.0.6-
i386-pc-freebsdelf3.2'
Here is the backtrace I pulled from gdb:
0x282b4905 in php_if_crypt (ht=1, return_value=0x8294c0c, this_ptr=0x0,
return_value_used=1) at crypt.c:153
153 srand48((unsigned int) time(0) * getpid() * (php_combined_lcg() * 10000.0));
As far as I can tell, the exception doesn't happen when I enter a salt. I'm using the MD5
password scheme on my FreeBSD box, instead of DES.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7350