[PATCH] Implement strlcat [BZ#178]

Paul Eggert eggert@cs.ucla.edu
Thu Dec 10 23:13:00 GMT 2015


On 12/10/2015 11:33 AM, Florian Weimer wrote:
> I see that you have added a reference to -fcheck-pointer-bounds.  Do you
> have practical experience with this option?

No, I'm afraid we are not up-to-date with the latest Intel hardware 
here; my usual development platform at UCLA runs a 5.5-year-old AMD CPU, 
alas. I will try to get my hands on a Skylake, but this may take some 
time. In the meantime my impression is that -fcheck-pointer-bounds works 
well enough for some packages when using recent-enough hardware and 
software, and I expect that by the time the next glibc comes out 
-fcheck-pointer-bounds will be more-used and better-supported. I suppose 
we could add wording to the glibc manual to say that 
-fcheck-pointer-bounds is bleeding-edge as of 2015.

It is amusing that -fcheck-pointer-bounds removes the main justification 
for strlcpy+strlcat. What timing!



More information about the Libc-alpha mailing list