Re: Vote for Zend Deep Stack Prevention (ZDSP)

From: Date: Sun, 26 Feb 2006 20:18:45 +0000
Subject: Re: Vote for Zend Deep Stack Prevention (ZDSP)
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-22019@lists.php.net to get a copy of this message
Using recursive functions without any constraint is a bad programming practice, period. You should always implement a pop/push stack in those situations to avoid getting into infinite or near infinite recursion. Ilia
OK, but the good compilers/interpreters don't segfault.. This time its my turn to produce a patch :) It plays with signals & such. I've discovered that zend_bailout() does everything I needed :) http://mega.ist.utl.pt/~ncpl/zend_stack_protection.txt Ah, I've read Stefan's Hardened patch, and yes, it is much simpler & superior than the patch that Michael Vergoz proposed. Nuno

Thread (20 messages)

« previous php.internals (#22019) next »