php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15262 openssl_pkcs7_verify segfaults (patch included...)
Submitted: 2002-01-28 16:35 UTC Modified: 2002-01-31 04:58 UTC
From: chregu@php.net Assigned:
Status: Closed Package: OpenSSL related
PHP Version: 4.0CVS-2002-01-28 OS: debian unstable
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 + 17 = ?
Subscribe to this entry?

 
 [2002-01-28 16:35 UTC] chregu@php.net
Not much to say. subject says it all. see patch.

Index: openssl.c
===================================================================
RCS file: /repository/php4/ext/openssl/openssl.c,v
retrieving revision 1.39
diff -u -r1.39 openssl.c
--- openssl.c   11 Dec 2001 15:30:00 -0000      1.39
+++ openssl.c   28 Jan 2002 21:35:06 -0000
@@ -2151,7 +2151,7 @@
        char * extracertsfilename = NULL; long extracertsfilename_len;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sszza!|ls",
-                               &infilename, &infilename_len, *outfilename, &outfilename_len,
+                               &infilename, &infilename_len, &outfilename, &outfilename_len,
                                &zcert, &zprivkey, &zheaders, &flags, &extracertsfilename,
                                &extracertsfilename_len) == FAILURE)
                return;

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-28 16:50 UTC] chregu@php.net
mmmh, it's openssl_pkcs7_sign, not openssl_pkcs7_verify....

chregu
 [2002-01-31 04:58 UTC] chregu@php.net
fixed in cvs by derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC