Re: PHP audit

From: Date: Thu, 14 Mar 2002 13:18:07 +0000
Subject: Re: PHP audit
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-81206@lists.php.net to get a copy of this message
Zeev Suraski wrote:
I think their work is a good step that PHP needed for a while. I also think it's an ongoing project, and not a one-time pass. Looking at the patch, the vast majority of changes made don't actually fix bugs, but rather, implement the same code using 'defensive' techniques. E.g., use strlcpy() instead of strcpy(), even when strcpy() is safe; Or, use sizeof(foo) instead of a hardcoded number as an argument to snprintf(), in case the size of foo changes in the future. The only comment I have (after this short glance) is that I'd rather see sizeof(foo) instead of 'sizeof foo' (we don't need yet another style in our code base :), but otherwise, I think most of the patches should make it into the main tree.
That's what I thought, too. I'm also suprised by the fact that there are so many magic numbers in php source ;) -- Yasuo Ohgaki
Zeev At 14:22 14/03/2002, Andrew Sitnikov wrote:
Hello php-dev, What you think about this: http://phpaudit.42-networks.com/ Big size of patch does not bring pleasure Best regards, Andrew Sitnikov e-mail : sitnikov@infonet.ee GSM: (+372) 56491109 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.dev (#81206) next »