php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44028 stream_socket_enable_crypto segmentation faults when crypto type is missing
Submitted: 2008-02-03 03:43 UTC Modified: 2008-02-03 16:18 UTC
From: mlemos at acm dot org Assigned:
Status: Closed Package: Sockets related
PHP Version: 5.2.5 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mlemos at acm dot org
New email:
PHP Version: OS:

 

 [2008-02-03 03:43 UTC] mlemos at acm dot org
Description:
------------
When calling the enable argument of stream_socket_enable_crypto is true, I the crypto type argument is not really optional, as the documentation suggests.

So, I supposed if you call stream_socket_enable_crypto with enable argument true and omit crypto_type, it would assume you want to enable client SSL/TLS negotiation, but instead PHP crashes.

Reproduce code:
---------------
stream_socket_enable_crypto($socket, true);

Expected result:
----------------
Fail warning the user that the crypto_type must be specified.

Actual result:
--------------
Segmentation fault .,

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-03 16:18 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 14:01:31 2024 UTC