|
|||||||||||
|
Re: Administrivia: List Announcement
From: xenophi1e <oliver.lavery(at)sympatico.ca>
Date: Tue May 13 2003 - 13:06:32 EDT ('binary' encoding is not supported, stored as-is) In-Reply-To: <Pine.LNX.4.55.0305131019280.11354@mail.securityfocus.com> This is a very good idea. This mailinglist is a good resource, but it could be a little more 'fun'... I'll take a whack. >
> for (i = 0; i <= SIZE && p1[i] != '\0'; i++)
Condition should be < SIZE. <= SIZE leads to the same vuln as above. This is also a shabby way to copy a string on architectures with a bigger word size than 8bits. The number of ops can be reduced by copying through a 32bit register and then using 8bits for the remaining < 4 bytes.
Cheers,
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:39 EDT |
||||||||||
|
|||||||||||