xref: /PHP-8.1/ext/openssl/tests/bug71475.phpt (revision 74859783)
1--TEST--
2Bug #71475: openssl_seal() uninitialized memory usage
3--EXTENSIONS--
4openssl
5--FILE--
6<?php
7$_ = str_repeat("A", 512);
8try {
9    openssl_seal($_, $_, $_, array_fill(0,64,0));
10} catch (TypeError $e) {
11    echo $e->getMessage(), "\n";
12}
13?>
14DONE
15--EXPECT--
16openssl_seal() expects at least 5 arguments, 4 given
17DONE
18