#29849 [Opn->Bgs]: openssl_pkcs7_encrypt() segaults

From: Date: Thu, 26 Aug 2004 16:33:52 +0000
Subject: #29849 [Opn->Bgs]: openssl_pkcs7_encrypt() segaults
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65298@lists.php.net to get a copy of this message
ID: 29849 Updated by: derick@php.net Reported By: adrieder at sbox dot tugraz dot at -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: Sparc/Solaris 9 PHP Version: 4.3.8 New Comment: Marking as bogus then, as it's not a bug in PHP. Previous Comments: ------------------------------------------------------------------------ [2004-08-26 17:08:35] adrieder at sbox dot tugraz dot at It seems to be related to openssl-0.9.7d under Solaris. An update to the current stable openssl snapshot solves the problem. Sorry and Thanks anyway! ------------------------------------------------------------------------ [2004-08-26 15:05:24] adrieder at sbox dot tugraz dot at 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 this bug report at http://bugs.php.net/?id=29849&edit=1

« previous php.bugs (#65298) next »