Re: Unchecked sprintf/strcat?
On Sun, May 21, 2006 at 06:35:46PM +0900, TAKAHASHI Tamotsu wrote:
> I've found a few unchecked sprintf and strcat.
> They don't look very dangerous, but you may want to fix them.
i find this sort of paranoid. snprintf & co are for strings with unknown
length (where i don't like them too much as well, as they cause silent
truncation which is often hard to debug).
if you don't trust the own code, use functions that raise an assertion
failure when the buffer is overflowed.
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
Chaos, panic, and disorder - my work here is done.