mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
- fix bug #54061, memory leak in openssl_decrypt
This commit is contained in:
parent
f922e31129
commit
32c4a3a061
1 changed files with 17 additions and 0 deletions
17
ext/openssl/tests/bug54061.phpt
Normal file
17
ext/openssl/tests/bug54061.phpt
Normal file
|
@ -0,0 +1,17 @@
|
|||
--TEST--
|
||||
Bug #54061 (Memory leak in openssl_decrypt)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("openssl")) die("skip"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$data = "jfdslkjvflsdkjvlkfjvlkjfvlkdm,4w 043920r 9234r 32904r 09243
|
||||
r7-89437 r892374 r894372 r894 7289r7 f frwerfh i iurf iuryw uyrfouiwy ruy
|
||||
972439 8478942 yrhfjkdhls";
|
||||
$pass = "r23498rui324hjbnkj";
|
||||
|
||||
$cr = openssl_encrypt($data, 'des3', $pass, false, '1qazxsw2');
|
||||
$dcr = openssl_decrypt($cr, 'des3', $pass, false, '1qazxsw2');
|
||||
echo "Done";
|
||||
?>
|
||||
--EXPECT--
|
||||
Done
|
Loading…
Add table
Add a link
Reference in a new issue