|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesdsa-dh-keygen-segfault-fix (last revision 2016-12-10 17:06 UTC by margusk at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-12-14 19:23 UTC] bukka@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: bukka
[2017-04-23 19:30 UTC] bukka@php.net
[2017-04-23 19:30 UTC] bukka@php.net
-Status: Assigned
+Status: Closed
[2017-04-23 19:32 UTC] bukka@php.net
[2017-04-23 19:34 UTC] bukka@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ When generating new DSA or DH key using openssl_pkey_new(), then script terminates with Segmentation Fault. The problem lies in method php_openssl_generate_private_key() (ext/openssl/openssl.c), where "dsaparam" and "dhparam" variables are not initialized. Both PHP 7.0 and 7.1 are affected. Test script: --------------- <?php $k = openssl_pkey_new (array ("private_key_type" => OPENSSL_KEYTYPE_DSA)); echo "Success!"; ?> Expected result: ---------------- Success! Actual result: -------------- Segmentation Fault