Whamcloud - gitweb
configure: Use FORTIFY_SOURCE=3 when hardening is enabled
authorTheodore Ts'o <tytso@mit.edu>
Thu, 25 Apr 2024 17:23:55 +0000 (13:23 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 25 Apr 2024 17:23:55 +0000 (13:23 -0400)
commit784c469575d5c75b24d0b3ee092331c7e1f7505e
tree7c6288d02c631fd0d858060dfae75dfd0d1826c8
parent7b76a84fd8f75fb53849a751db27d7dfd17bd8b6
configure: Use FORTIFY_SOURCE=3 when hardening is enabled

FORTIFY_SOURCE=3 provides much more robust checks for buffer overruns
and other memory bugs[1].  It requires gcc 12 and glibc 2.34 which
should be available on most modern distributions (which are the ones
that use --enable-hardening).

[1] https://developers.redhat.com/articles/2022/09/17/gccs-new-fortification-level

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
configure
configure.ac