#29849 [NEW]: openssl_pkcs7_encrypt() segaults

From: Date: Thu, 26 Aug 2004 13:05:27 +0000
Subject: #29849 [NEW]: openssl_pkcs7_encrypt() segaults
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65280@lists.php.net to get a copy of this message
From: adrieder at sbox dot tugraz dot at Operating system: Sparc/Solaris 9 PHP version: 4.3.8 PHP Bug Type: Reproducible crash Bug description: openssl_pkcs7_encrypt() segaults Description: ------------ openssl_pkcs7_encrypt() causes a reproducible segfault when running on Sparc/Solaris 9. it happens when it is invoced as apache (1.3.31) module and on the command line aswell. My system: Sparc/Solaris 9 gcc-3.2.1 apache-1.3.31 php-3.4.8 openssl-0.9.7d Reproduce code: --------------- <?php $cert = "<paste your public key here (PEM formated)>"; openssl_pkcs7_encrypt("/tmp/aaaa_test", "/tmp/aaaa_out", $cert, array('To' => 'test@example.net')); ?> Expected result: ---------------- /tmp/aaaa_out should contain encrypted data from /tmp/aaaa_test Actual result: -------------- segmentation fault core dumped. -- Edit bug report at http://bugs.php.net/?id=29849&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29849&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29849&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29849&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=29849&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29849&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29849&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29849&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29849&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29849&r=support Expected behavior: http://bugs.php.net/fix.php?id=29849&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29849&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29849&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29849&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29849&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29849&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29849&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29849&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29849&r=float

« previous php.bugs (#65280) next »