mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-25 09:46:28 +08:00
Add PHP Extension for GmSSL
View http://gmssl.org/docs/php-api.html for more info.
This commit is contained in:
16
php/ext/openssl/tests/bug71475.phpt
Normal file
16
php/ext/openssl/tests/bug71475.phpt
Normal file
@@ -0,0 +1,16 @@
|
||||
--TEST--
|
||||
Bug #71475: openssl_seal() uninitialized memory usage
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded("openssl")) die("skip openssl not loaded");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$_ = str_repeat("A", 512);
|
||||
openssl_seal($_, $_, $_, array_fill(0,64,0));
|
||||
?>
|
||||
DONE
|
||||
--EXPECTF--
|
||||
|
||||
Warning: openssl_seal(): not a public key (1th member of pubkeys) in %s%ebug71475.php on line %d
|
||||
DONE
|
||||
Reference in New Issue
Block a user