From 7bec3ba0c9e978196870430014cc97d55fbd9f2f Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Fri, 10 Apr 2026 22:11:01 -0700 Subject: [PATCH] z88dk: disable fortify to fix buffer overflow in z80asm --- pkgs/by-name/z8/z88dk/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/z8/z88dk/package.nix b/pkgs/by-name/z8/z88dk/package.nix index 9f987a04ce21..4699bf91b1a4 100644 --- a/pkgs/by-name/z8/z88dk/package.nix +++ b/pkgs/by-name/z8/z88dk/package.nix @@ -136,6 +136,10 @@ stdenv.mkDerivation (finalAttrs: { rm src/z80asm/t/z80asm_lib.t ''; + # z88dk-z80asm triggers buffer overflow detection with FORTIFY_SOURCE=3. + # Upstream bug: https://github.com/z88dk/z88dk/issues/3042 + hardeningDisable = [ "fortify" ]; + # Parallel building is not working yet with the upstream Makefiles. # Explicitly switch this off for now. enableParallelBuilding = false;