- Fixed bug #53136 (Invalid read on openssl_csr_new())

This commit is contained in:
Felipe Pena 2010-11-12 23:34:03 +00:00
parent 3332c5be08
commit c095bec250
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -81,6 +81,7 @@
- Fixed bug #53144 (Segfault in SplObjectStorage::removeAll()). (Felipe)
- Fixed bug #53141 (autoload misbehaves if called from closing session).
(ladislav at marek dot su)
- Fixed bug #53136 (Invalid read on openssl_csr_new()). (Felipe)
- Fixed bug #53071 (SPLObjectStorage defeats gc_collect_cycles). (Gustavo)
- Fixed bug #53006 (stream_get_contents has an unpredictable behavior when the
underlying stream does not support seeking). (Gustavo)

View File

@ -2117,7 +2117,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);