From: Felipe Pena Date: Fri, 12 Nov 2010 23:34:03 +0000 (+0000) Subject: - Fixed bug #53136 (Invalid read on openssl_csr_new()) X-Git-Tag: php-5.4.0alpha1~191^2~688 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e8c2ba6905f42cb2ec873603ccb61968fc72e21;p=php - Fixed bug #53136 (Invalid read on openssl_csr_new()) --- 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);