Commit:    270a406ac94b5fc5cc9ef59fc61e3b4b95648a3e
Author:    Anatoliy Belsky <a...@php.net>         Tue, 24 Apr 2012 14:05:35 
+0200
Parents:   8d748e5de519867d9b6ce40e3ea28a209b07768f
Branches:  PHP-5.3 PHP-5.4 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=270a406ac94b5fc5cc9ef59fc61e3b4b95648a3e

Log:
Fix bug #61413 ext\openssl\tests\openssl_encrypt_crash.phpt fails 5.3 only

Bugs:
https://bugs.php.net/61413

Changed paths:
  M  ext/openssl/openssl.c


Diff:
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 7c5afc5..779a91d 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -4677,7 +4677,7 @@ PHP_FUNCTION(openssl_encrypt)
        int data_len, method_len, password_len, iv_len = 0, max_iv_len;
        const EVP_CIPHER *cipher_type;
        EVP_CIPHER_CTX cipher_ctx;
-       int i, outlen, keylen;
+       int i = 0, outlen, keylen;
        unsigned char *outbuf, *key;
        zend_bool free_iv;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to