tmux: fix NULL deref in control_write on uninitialized control client (#521870)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
autoreconfHook,
|
||||
bison,
|
||||
libevent,
|
||||
@@ -36,6 +37,17 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-VwOyR9YYhA/uyVRJbspNrKkJWJGYFFktwPnnwnIJ97s=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix NULL pointer dereference in control_write() when a control-mode
|
||||
# client is notified before control_state has been allocated.
|
||||
# https://github.com/tmux/tmux/issues/4980
|
||||
(fetchpatch {
|
||||
name = "tmux-control-notify-uninitialized.patch";
|
||||
url = "https://github.com/tmux/tmux/commit/e5a2a25fafb8ee107c230d8acad694f6b635f8bb.patch";
|
||||
hash = "sha256-UPbhMNnH1WJwTH/LVwjVonTqvNhyuniUrYm7iLVkCfg=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
autoreconfHook
|
||||
|
||||
Reference in New Issue
Block a user