This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use fortify macros for b{zero,copy} along decl from strings.h
On 05/01/2017 18:01, Florian Weimer wrote:
> On 01/05/2017 01:37 PM, Adhemerval Zanella wrote:
>> To fix this behavior, the patch moved the bzero, bcopy, and
>> __explicit_bzero_chk to a common header (string/bits/strings_fortified.h)
>> and explicit fortified inclusion macros similar to string.h is added
>> on strings.h. This allows to get fortified declarions by only including
>> strings.h.
>
> Does this add explicit_bzero to <strings.h>? I'm not sure we want that. Certainly not if this only happens with _FORTIFY_SOURCE.
>
> Thanks,
> Florian
It does and I think we can move explicit_bzero back to string3.h and make
only fortified bzero and bcopy on string/bits/strings_fortified.h. I will
fix it.