From: [email protected] Operating system: Linux, Mac OSX PHP version: 5.3.2RC2 PHP Bug Type: *Encryption and hash functions Bug description: crypt() segfaults on certain salts
Description:
------------
Prior to 5.3, crypt() would safely handle certain invalid salts. With the
switch to the new DES-based crypt() provider in 5.3, it segfaults.
In discussing this with Pierre, he indicated the problem was in do_des().
Reproduce code:
---------------
<?php
var_dump(crypt('a', '_'));
Expected result:
----------------
string(13) "_$MoLFnWnJ4yk"
Actual result:
--------------
Segmentation fault
--
Edit bug report at http://bugs.php.net/?id=51059&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51059&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51059&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51059&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51059&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=51059&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51059&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=51059&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=51059&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=51059&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=51059&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=51059&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=51059&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=51059&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51059&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51059&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51059&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=51059&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=51059&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=51059&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=51059&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=51059&r=mysqlcfg
