sparse: disable fortify3 hardening flag

This commit is contained in:
Theodore Ni 2023-07-12 22:39:02 -07:00
parent b14fcda6c0
commit cf84ebf371
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -22,6 +22,14 @@ in stdenv.mkDerivation rec {
doCheck = true;
buildFlags = [ "GCC_BASE:=${GCC_BASE}" ];
# Test failures with "fortify3" on, such as:
# +*** buffer overflow detected ***: terminated
# +Aborted (core dumped)
# error: Actual exit value does not match the expected one.
# error: expected 0, got 134.
# error: FAIL: test 'bool-float.c' failed
hardeningDisable = [ "fortify3" ];
passthru.tests = {
simple-execution = callPackage ./tests.nix { };
};