tech-pkg archive

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

Re: Theo chiming in on strlcpy

On Sat, Dec 21, 2013 at 06:36:53PM +0100, Hubert Feyrer wrote:
> On Sat, 21 Dec 2013, Marc Espie wrote:
> >
> >('On the matter of strlcpy/strlcat acceptance by industry')
> >
> >Similar statistics in pkgsrc land might be useful.
> >
> >Or this may get you thinking about trying to make things better, one
> >package at a time... :)
> There's an idea about teaching the compiler to recognize some "bad"
> code, and while building the bad code to actually replace it with
> good code[1]. (Or was that good & bad reversed? :-)

Oh, you can borrow from us (for the "recognizing bad code"), we've been
patching the compiler and the libc to warn about strcpy and friends for years.
(the compiler, because otherwise, the built-ins tend to vanish) 

Home | Main Index | Thread Index | Old Index