From 539685aef20f91c7131f5a4b0ebcd2740fc643c9 Mon Sep 17 00:00:00 2001 From: Nicolas Berbiche Date: Wed, 10 Mar 2021 18:27:42 -0500 Subject: [PATCH] cagebreak: 1.5.0 -> 1.6.0 Fixes issues: - 24: > Cagebreak up to and including release 1.5.1 had an error, where the code > incremented a variable and not a pointer. This resulted in a bug in a > surface counting iterator. - 25: > Cagebreak, beginning with release 1.5.0, when a keybinding containing an > output configuration is removed from the list of active keybindings, the > output configuration contained in this keybinding is destroyed in order to > prevent memory leaks. However, after an output configuration was applied, > it was inserted into the list of active output configurations and if it was > later destroyed, this led to a use-after-free memory corruption. > > Starting from release 1.6.0, output configurations are copied before being > inserted into the list of active output configurations and therefore remain > valid even if the original is freed. --- pkgs/applications/window-managers/cagebreak/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/window-managers/cagebreak/default.nix b/pkgs/applications/window-managers/cagebreak/default.nix index a4e5d7f7028..93ac815346e 100644 --- a/pkgs/applications/window-managers/cagebreak/default.nix +++ b/pkgs/applications/window-managers/cagebreak/default.nix @@ -8,13 +8,13 @@ stdenv.mkDerivation rec { pname = "cagebreak"; - version = "1.5.0"; + version = "1.6.0"; src = fetchFromGitHub { owner = "project-repo"; repo = "cagebreak"; rev = version; - hash = "sha256-P6zBVQEv+fKdverNIXhoEavu51uGKbSHx3Sh5FWsc2E="; + hash = "sha256-F7fqDVbJS6pVgmj6C1/l9PAaz5yzcYpaq6oc6a6v/Qk="; }; nativeBuildInputs = [ meson ninja pkg-config wayland scdoc makeWrapper ]; @@ -29,6 +29,7 @@ stdenv.mkDerivation rec { mesonFlags = [ "-Dxwayland=${lib.boolToString withXwayland}" "-Dversion_override=${version}" + "-Dman-pages=true" ]; postInstall = ''