Bug #78391 [Ver->Asn]: Assertion failure in openssl_random_pseudo_bytes

From: Date: Fri, 09 Aug 2019 13:00:30 +0000
Subject: Bug #78391 [Ver->Asn]: Assertion failure in openssl_random_pseudo_bytes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222159@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78391&edit=1 ID: 78391 Updated by: nikic@php.net Reported by: ildar dot aim at gmail dot com -Summary: php-7.4.0beta2/ext/openssl/openssl.c:6982: zif_openssl_random_pseudo_bytes: Ass +Summary: Assertion failure in openssl_random_pseudo_bytes -Status: Verified +Status: Assigned Type: Bug Package: OpenSSL related Operating System: Linux x86_64 PHP Version: 7.4.0beta2 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2019-08-09 12:53:47] ildar dot aim at gmail dot com changed subject ------------------------------------------------------------------------ [2019-08-09 12:51:44] ildar dot aim at gmail dot com Description: ------------ aim-server[~/tmp]$ /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -r '$isStrongCrypto=false;print_r(openssl_random_pseudo_bytes(16, $isStrongCrypto));die;' php: /opt/phpfarm_new/src/php-7.4.0beta2/ext/openssl/openssl.c:6982: zif_openssl_random_pseudo_bytes: Assertion `(zval_get_type(&(*(zstrong_result_returned))) == 10)' failed. zsh: abort (core dumped) /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -r Test script: --------------- aim-server[~/tmp]$ /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -r '$isStrongCrypto=false;$h = openssl_random_pseudo_bytes(16, $isStrongCrypto);die;' php: /opt/phpfarm_new/src/php-7.4.0beta2/ext/openssl/openssl.c:6982: zif_openssl_random_pseudo_bytes: Assertion `(zval_get_type(&(*(zstrong_result_returned))) == 10)' failed. zsh: abort (core dumped) /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -r aim-server[~/tmp]$ /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -v PHP 7.4.0beta2 (cli) (built: Aug 7 2019 16:34:24) ( NTS DEBUG ) Copyright (c) The PHP Group Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies with Zend OPcache v7.4.0beta2, Copyright (c), by Zend Technologies aim-server[~/tmp]$ openssl version OpenSSL 1.1.1c 28 May 2019 aim-server[~/tmp]$ Expected result: ---------------- generated string Actual result: -------------- zif_openssl_random_pseudo_bytes: Assertion `(zval_get_type(&(*(zstrong_result_returned))) == 10)' failed. zsh: abort (core dumped) /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -r ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78391&edit=1

« previous php.bugs (#222159) next »