Re: [PATCH v6 2/4] Compiler Attributes: Add __overloadable for Clang

From: Nick Desaulniers
Date: Thu Feb 03 2022 - 15:26:33 EST


On Thu, Feb 3, 2022 at 9:33 AM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>
> In order for FORTIFY_SOURCE to use __pass_object_size on an "inline
> extern" function, as all the fortified string functions are, the functions

s/inline extern/extern inline/

Yes, they're the same thing, but it sounds backwards when I read it.

> must be marked as being overloadable (i.e. different prototypes).
> This allows the __pass_object_size versions to take precedence.

Is this because of the `const` additions to the function signatures?

--
Thanks,
~Nick Desaulniers