]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
build: initialize stack variables to zero by default
authorDarrick J. Wong <djwong@kernel.org>
Thu, 16 Jan 2025 21:22:05 +0000 (13:22 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 16 Jan 2025 21:27:27 +0000 (13:27 -0800)
commite1d3ce600d70b20b779cb2cc872212c66f550ac8
tree3f37a688ad33c241e4d15959281ef451125ca7ca
parent43025caf770e4dce986b27cd117a2ef5d3ececd8
build: initialize stack variables to zero by default

Newer versions of gcc and clang can include the ability to zero stack
variables by default.  Let's enable it so that we (a) reduce the risk of
writing stack contents to disk somewhere and (b) try to reduce
unpredictable program behavior based on random stack contents.  The
kernel added this 6 years ago, so I think it's mature enough for
xfsprogs.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reluctantly-Reviewed-by: Christoph Hellwig <hch@lst.de>
configure.ac
include/builddefs.in
m4/package_sanitizer.m4