From 6e8c2ba6905f42cb2ec873603ccb61968fc72e21 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 12 Nov 2010 23:34:03 +0000 Subject: [PATCH] - Fixed bug #53136 (Invalid read on openssl_csr_new()) --- ext/openssl/openssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 4427c43700..609871b7ea 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -2154,7 +2154,8 @@ static int php_openssl_make_REQ(struct php_x509_request * req, X509_REQ * csr, z if (attribs) { zend_hash_internal_pointer_reset_ex(HASH_OF(attribs), &hpos); while(zend_hash_get_current_data_ex(HASH_OF(attribs), (void**)&item, &hpos) == SUCCESS) { - char * strindex; uint strindexlen; + char *strindex = NULL; + uint strindexlen; ulong intindex; zend_hash_get_current_key_ex(HASH_OF(attribs), &strindex, &strindexlen, &intindex, 0, &hpos); -- 2.40.0