xref: /PHP-7.0/ext/openssl/tests/bug71475.phpt (revision 1c2d45d2)
1--TEST--
2Bug #71475: openssl_seal() uninitialized memory usage
3--SKIPIF--
4<?php
5if (!extension_loaded("openssl")) die("skip openssl not loaded");
6?>
7--FILE--
8<?php
9$_ = str_repeat("A", 512);
10openssl_seal($_, $_, $_, array_fill(0,64,0));
11?>
12DONE
13--EXPECTF--
14
15Warning: openssl_seal(): not a public key (1th member of pubkeys) in %s%ebug71475.php on line %d
16DONE
17