[PATCH v3] Add _FORTIFY_SOURCE implementation documentation [BZ #28998]
Siddhesh Poyarekar
siddhesh@sourceware.org
Tue Jan 10 13:03:16 GMT 2023
On 2023-01-09 10:32, Florian Weimer wrote:
> * Siddhesh Poyarekar:
>
>> +The following functions are fortified in @theglibc{}:
>> +
>> +@itemize @bullet
>> +@item @code{asprintf}: Replaced with @code{__asprintf_chk}.
>> +
>> +@item @code{confstr}: Replaced with @code{__confstr_chk}.
>> +
>> +@item @code{dprintf}: Replaced with @code{__dprintf_chk}.
>
> For the *printf* functions, the replacement depends on the architecture
> and compilation mode (the concrete type of long double).
Oh yeah, I had missed the __nldbl_* ones and, TIL about the ieee128
ones. And guess what, I tried another way to look up this list (through
Versions files) and found that mq_open is also fortified!
>> +@item @code{explicit_bzero}: Replaced with @code{__explicit_bzero_chk}.
>> +
>> +@item @code{FD_SET}: Replaced with @code{__fdelt_chk}.
>> +
>> +@item @code{FD_CLR}: Replaced with @code{__fdelt_chk}.
>> +
>> +@item @code{FD_ISSET}: Replaced with @code{__fdelt_chk}.
>
> These three macros (not functions) aren't replaced, but enhanced.
>
> Maybe just mentioned the list of functions/macros, and point towards the
> general pattern, but also note the presence of exceptions?
Ack, v4 coming up.
Thanks,
Sid
More information about the Libc-alpha
mailing list