RE: [PHP-CVS] cvs: php-src(PHP_5_2) /ext/openssl openssl.c
| From: | Dmitry Stogov | Date: | Wed, 11 Jul 2007 10:25:42 +0000 |
| Subject: | RE: [PHP-CVS] cvs: php-src(PHP_5_2) /ext/openssl openssl.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-45209@lists.php.net to get a copy of this message | ||
I don't think it is imprtant fix.
Nobody uses non-sting pasphrases. :)
I found this bug in PHP6 where it was real stopper (because of unicode
passphrases) and then backported it to 5.2.
Thanks. Dmitry.
> -----Original Message-----
> From: Pierre [mailto:pierre.php@gmail.com]
> Sent: Wednesday, July 11, 2007 12:42 PM
> To: Dmitry Stogov
> Cc: php-cvs@lists.php.net
> Subject: Re: [PHP-CVS] cvs: php-src(PHP_5_2) /ext/openssl openssl.c
>
>
> Hi Dmitry,
>
> Thanks for the fixes!
>
> Can you add two NEWS entry please? (5_2)
>
> On 7/11/07, Dmitry Stogov <dmitry@php.net> wrote:
> > dmitry Wed Jul 11 07:26:52 2007 UTC
> >
> > Modified files: (Branch: PHP_5_2)
> > /php-src/ext/openssl openssl.c
> > Log:
> > Fixed crash on non-string passphrase
> >
> >
> >
>
> http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/openssl.c?r1=1.98.2.
> > 5.2.35&r2=1.98.2.5.2.36&diff_format=u
> > Index: php-src/ext/openssl/openssl.c
> > diff -u php-src/ext/openssl/openssl.c:1.98.2.5.2.35
> php-src/ext/openssl/openssl.c:1.98.2.5.2.36
> > --- php-src/ext/openssl/openssl.c:1.98.2.5.2.35 Tue Jun 19
> 22:09:49 2007
> > +++ php-src/ext/openssl/openssl.c Wed Jul 11 07:26:52 2007
> > @@ -20,7 +20,7 @@
> >
> +-------------------------------------------------------------
> ---------+
> > */
> >
> > -/* $Id: openssl.c,v 1.98.2.5.2.35 2007/06/19 22:09:49
> iliaa Exp $ */
> > +/* $Id: openssl.c,v 1.98.2.5.2.36 2007/07/11 07:26:52
> dmitry Exp $ */
> >
> > #ifdef HAVE_CONFIG_H
> > #include "config.h"
> > @@ -2256,6 +2256,7 @@
> > } else {
> > tmp = **zphrase;
> > zval_copy_ctor(&tmp);
> > + convert_to_string(&tmp);
> > passphrase = Z_STRVAL(tmp);
> > }
> >
> >
> > --
> > PHP CVS Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>