wg-best-practices-os-developers icon indicating copy to clipboard operation
wg-best-practices-os-developers copied to clipboard

Mention that implicit function declarations harm _FORTIFY_SOURCE

Open thesamesam opened this issue 1 year ago • 0 comments

Originally posted as a comment at https://github.com/ossf/wg-best-practices-os-developers/pull/357#discussion_r1594512075.

--

Implicit function declarations mean you get either little-or-no fortification via _FORTIFY_SOURCE (which I mention at https://wiki.gentoo.org/wiki/Modern_C_porting#Is_this_cosmetic.3F).

(Depending on the implementation, you may get some small fortification from the builtin compiler versions, rather than the variants in libc.)

thesamesam avatar May 08 '24 19:05 thesamesam