This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Implement strlcat [BZ#178]


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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]