Skip to content

Commit 7ad1703

Browse files
committed
Add overflow check for openssl_pkcs12_read
1 parent ef063dc commit 7ad1703

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/openssl/openssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2553,6 +2553,8 @@ PHP_FUNCTION(openssl_pkcs12_read)
25532553

25542554
RETVAL_FALSE;
25552555

2556+
PHP_OPENSSL_CHECK_OVERFLOW(zp12_len, pkcs12);
2557+
25562558
bio_in = BIO_new(BIO_s_mem());
25572559

25582560
if(0 >= BIO_write(bio_in, zp12, (int)zp12_len))

0 commit comments

Comments
 (0)