diff options
| author | Jakub Zelenka <bukka@php.net> | 2015-08-20 19:29:54 +0100 |
|---|---|---|
| committer | Jakub Zelenka <bukka@php.net> | 2015-08-20 19:29:54 +0100 |
| commit | 7ad170341303933eae4e9d30e5048cb462f0817d (patch) | |
| tree | a7815dd50568d8c2d228e5d2ed8f4fbbeaf1db73 /ext/openssl/openssl.c | |
| parent | ef063dcb055aa1b3d04c5500ded76c13a581d97d (diff) | |
| download | php-git-7ad170341303933eae4e9d30e5048cb462f0817d.tar.gz | |
Add overflow check for openssl_pkcs12_read
Diffstat (limited to 'ext/openssl/openssl.c')
| -rw-r--r-- | ext/openssl/openssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 9deef36e8f..7dcc16b242 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -2553,6 +2553,8 @@ PHP_FUNCTION(openssl_pkcs12_read) RETVAL_FALSE; + PHP_OPENSSL_CHECK_OVERFLOW(zp12_len, pkcs12); + bio_in = BIO_new(BIO_s_mem()); if(0 >= BIO_write(bio_in, zp12, (int)zp12_len)) |
