From: j...@php.net 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