Re: Bug #10447 Updated: ccvs_*() functions segfault when given invalid session ID
| From: | Sterling Hughes | Date: | Sun, 22 Apr 2001 14:52:37 +0000 |
| Subject: | Re: Bug #10447 Updated: ccvs_*() functions segfault when given invalid session ID | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-52164@lists.php.net to get a copy of this message | ||
On 23 Apr 2001 bmcadams@php.net wrote:
> ID: 10447
> Updated by: bmcadams
> Reported By: torben@php.net
> Old-Status: Analyzed
> Status: Assigned
> Bug Type: CCVS related
> PHP Version: 4.0 Latest CVS (22/04/2001)
> Assigned To: bmcadams@php.net
> Comments:
>
> The fix that sterling put in place will at the least check if the session being passed is a
> string value: this still doesn't protect from someone arbitrarily passing any old string (for
> example "crash_ccvs").
>
Actually, more accurately, it will check to see if it has a value at all.
> While obviously it is up to the programmer to be smart and not pass a bad session to CCVS, CCVS
> Should not be segfaulting if they pass a bad value.
>
> I am looking into a way to trap this value from being bad.
>
I would personally mark anything further up as a bug in CCVS, not PHP.
And perhaps file a bug with the CCVS folk... The other option (storing
the allocated sessions and checking to see if the passed session is in
that list), seems like a lot of overhead that isn't the responsibility of
the extension...
-Sterling