Re: Bug #10447 Updated: ccvs_*() functions segfault whengiven invalid session ID

From: Date: Mon, 23 Apr 2001 15:27:54 +0000
Subject: Re: Bug #10447 Updated: ccvs_*() functions segfault whengiven invalid session ID
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-52207@lists.php.net to get a copy of this message
I'm more or less of the same mindset here: my big problem obviously is that we are allowing the PHP binary to segfault and this is BAD. I will try calling RedHat today and see if I can't convince them to fix this at their level. We should come up with some kind of course of action to prevent PHP From coring however. -Brendan ----- Original Message ----- From: "Sterling Hughes" <sterling@designmultimedia.com> To: <bmcadams@php.net> Cc: <php-dev@lists.php.net> Sent: Sunday, April 22, 2001 10:52 Subject: Re: [PHP-DEV] Bug #10447 Updated: ccvs_*() functions segfault whengiven invalid session ID 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#52207) next »