php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29849 openssl_pkcs7_encrypt() segaults
Submitted: 2004-08-26 15:05 UTC Modified: 2004-08-26 18:33 UTC
From: adrieder at sbox dot tugraz dot at Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.8 OS: Sparc/Solaris 9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: adrieder at sbox dot tugraz dot at
New email:
PHP Version: OS:

 

 [2004-08-26 15:05 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-26 17:08 UTC] 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 18:33 UTC] derick@php.net
Marking as bogus then, as it's not a bug in PHP.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Dec 05 00:00:01 2025 UTC