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
- From: Zack Weinberg <zackw at panix dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 5 Jan 2017 11:40:10 -0500
- Subject: Re: [PATCH] Use fortify macros for b{zero,copy} along decl from strings.h
- Authentication-results: sourceware.org; auth=none
This was meant to go to the list.
---------- Forwarded message ----------
From: Zack Weinberg <zackw@panix.com>
Date: Thu, Jan 5, 2017 at 9:26 AM
Subject: Re: [PATCH] Use fortify macros for b{zero,copy} along decl
from strings.h
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>
On Thu, Jan 5, 2017 at 7:37 AM, Adhemerval Zanella
<adhemerval.zanella@linaro.org> 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.
LGTM.
You might be interested in
https://sourceware.org/ml/libc-alpha/2016-11/msg00595.html which is
closely related (but not fixing a _bug_, so 2.26 material at this
point).
zw