bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libintl.h warnings with -Wundef


From: Marc Espie
Subject: Re: libintl.h warnings with -Wundef
Date: Sat, 20 Sep 2008 10:02:30 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Sat, Sep 20, 2008 at 03:19:53AM +0200, Bruno Haible wrote:
> > This is just a pain in the ass... compiling thousands of software projects 
> > is
> > not that easy. Each stupid warning is noise.
> 
> So, why do I get warnings like
>   warning: strcpy() is almost always misused, please use strlcpy()
>   warning: sprintf() is often misused, please use snprintf()
> each time I link a program on OpenBSD? My programs are written in GNU style,
> with dynamic memory allocation instead of buffers of fixed and arbitrary size.
> Therefore when I use strcpy or sprintf I _do_ care about not overflowing the
> destination area. Therefore these warnings are pointless to me.

Oh, I get it.

So this is not about fixing technical issues, it's just a political agenda
and you don't like us.


Even in GNU-style, even with careful coding, stuff like snprintf and strlcpy
is useful.

Sooner or later, you make a mistake. Granted, people find it eventually,
but in the mean time, you have a security hole.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]