Originally posted by erniv2
View Post
Code:
#define _FORTIFY_SOURCE 3
But all that still doesn't tell you much. What this really does is switches on some additional compile-time and runtime checks, in code using GNU libc. Here's the (overly terse, IMO), documentation, in the glibc manual:
Macro: _FORTIFY_SOURCE
If this macro is defined to 1, security hardening is added to various library functions. If defined to 2, even stricter checks are applied. If defined to 3, the GNU C Library may also use checks that may have an additional performance overhead.
https://www.gnu.org/software/libc/ma...IFY_005fSOURCE
Comment