[PATCH] Use fortify macros for b{zero,copy} along decl from strings.h

Zack Weinberg zackw@panix.com
Thu Jan 5 16:40:00 GMT 2017


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



More information about the Libc-alpha mailing list