Skip to content

Commit 3f9994f

Browse files
committed
Reintroduce check which got dropped during the rebase
1 parent 3097f37 commit 3f9994f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/openssl/openssl.c

+2
Original file line numberDiff line numberDiff line change
@@ -4743,6 +4743,8 @@ PHP_FUNCTION(openssl_dh_compute_key)
47434743
RETURN_THROWS();
47444744
}
47454745

4746+
PHP_OPENSSL_CHECK_SIZE_T_TO_INT(pub_len, pub_key, 1);
4747+
47464748
pkey = Z_OPENSSL_PKEY_P(key)->pkey;
47474749

47484750
if (EVP_PKEY_base_id(pkey) != EVP_PKEY_DH) {

0 commit comments

Comments
 (0)