Re: PHP 4.0 Bug #7350 Updated: crypt causes floating point exception
| From: | Ben Schumacher | Date: | Tue, 28 Nov 2000 23:07:32 +0000 |
| Subject: | Re: PHP 4.0 Bug #7350 Updated: crypt causes floating point exception | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-39422@lists.php.net to get a copy of this message | ||
Jani-
Sorry it took me so long to get back to you, I was out of town over the holiday. I just tested crypt with the snap "php4-200011281345" and it appears that the bug has been fixed. No more floating point exceptions.
Hope this helps,
- Ben Schumacher
At 09:33 AM 11/21/2000 +0000, you wrote:
ID: 7350 Updated by: sniper Reported By: ben@henshaw.net Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: Could you try latest snapshot from http://snaps.php.net/ to verify if this is still happening ? --Jani Previous Comments: --------------------------------------------------------------------------- [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