Re: cvs: php4 /ext/ccvs ccvs.c
| From: | Andi Gutmans | Date: | Mon, 23 Apr 2001 13:20:25 +0000 |
| Subject: | Re: cvs: php4 /ext/ccvs ccvs.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-5218@lists.php.net to get a copy of this message | ||
Are you sure this patch is right? It seems a bit odd. You shouldn't really have NULL pointers in strings which are passed to convert_to_string_ex().
Andi
At 11:40 PM 4/22/2001 +0000, Sterling Hughes wrote:
sterling Sun Apr 22 16:40:34 2001 EDTModified files:/php4/ext/ccvs ccvs.cLog: Fix bug #10447. Index: php4/ext/ccvs/ccvs.c diff -u php4/ext/ccvs/ccvs.c:1.13 php4/ext/ccvs/ccvs.c:1.14 --- php4/ext/ccvs/ccvs.c:1.13 Sun Feb 25 22:06:48 2001+++ php4/ext/ccvs/ccvs.c Sun Apr 22 16:40:34 2001@@ -17,7 +17,7 @@+----------------------------------------------------------------------+*/ /*-* cvvs.c $Revision: 1.13 $ - PHP4 Interface to the RedHat CCVS API +* cvvs.c $Revision: 1.14 $ - PHP4 Interface to the RedHat CCVS API * ------- * Interfaces RedHat's CCVS [Credit Card Verification System] <http://www.redhat.com/products/ccvs/> * This code is ported from an original php3 interface written by RedHat's Doug DeJulio <ddj@redhat.com>@@ -27,10 +27,10 @@ /** Code started on 2000.07.24@09.04.EST by Brendan W. McAdams <bmcadams@php.net> -* $Revision: 1.13 $ +* $Revision: 1.14 $*/ -static char const cvsid[] = "$Id: ccvs.c,v 1.13 2001/02/26 06:06:48 andi Exp $"; +static char const cvsid[] = "$Id: ccvs.c,v 1.14 2001/04/22 23:40:34 sterling Exp $"; #include <php.h> #include <stdlib.h> @@ -193,6 +193,11 @@ } convert_to_string_ex(psess); + if (!Z_STRVAL_PP(psess)) {+ php_error(E_WARNING, "Invalid session to ccvs_new()"); + RETURN_FALSE;+ } + sess = hks_ptr_stringtoptr((*psess)->value.str.val); convert_to_string_ex(pinvoice); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net For additional commands, e-mail: php-cvs-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net