Download src/php/php-src/ext/openssl/tests/bug38255.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 786 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/openssl/tests/bug38255.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/openssl/tests/bug38255.phpt
-
curl -L -o bug38255.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/openssl/tests/bug38255.phpt
786 Bytes
| --TEST-- | |
| openssl key from zval leaks | |
| --EXTENSIONS-- | |
| openssl | |
| --FILE-- | |
| $pub_key_id = false; | |
| $signature = ''; | |
| $ok = openssl_verify("foo", $signature, $pub_key_id, OPENSSL_ALGO_MD5); | |
| class test { | |
| function __toString() { | |
| return "test object"; | |
| } | |
| } | |
| $t = new test; | |
| var_dump(openssl_verify("foo", $signature, $pub_key_id, OPENSSL_ALGO_MD5)); | |
| var_dump(openssl_verify("foo", $t, $pub_key_id, OPENSSL_ALGO_MD5)); | |
| echo "Done\n"; | |
| --EXPECTF-- | |
| Warning: openssl_verify(): Supplied key param cannot be coerced into a public key in %s on line %d | |
| Warning: openssl_verify(): Supplied key param cannot be coerced into a public key in %s on line %d | |
| bool(false) | |
| Warning: openssl_verify(): Supplied key param cannot be coerced into a public key in %s on line %d | |
| bool(false) | |
| Done | |