mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
17 lines
361 B
PHP
17 lines
361 B
PHP
--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
|