Backup tool?

Colin Watson cjwatson at canonical.com
Tue Oct 19 13:35:25 UTC 2004


On Tue, Oct 19, 2004 at 09:13:08PM +0800, John wrote:
> I'm not going to spend much time on this. here are som common C 
> functions I believe inherently unsafe because they rely on strings not 
> being too long, and which are used in mondo:
> strcat()
> strstr()
> sprintf()
> strcpy()
> strchr()

Not to argue with the rest of your mail, but in what way are strstr()
and strchr() inherently unsafe? They aren't. If what you thought was a
string was already not null-terminated, you've already lost before
calling strstr() or strchr().

Cheers,

-- 
Colin Watson                                    [cjwatson at canonical.com]




More information about the ubuntu-users mailing list