wg-best-practices-os-developers
wg-best-practices-os-developers copied to clipboard
Mention that implicit function declarations harm _FORTIFY_SOURCE
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.)