numactl: Fix memory corruption in set_nodemask_size

This commit is contained in:
Mikael Voss 2024-10-10 18:09:48 +02:00
parent df499e467c
commit ba99a7b1ef
No known key found for this signature in database

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "numactl";
@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
hash = "sha256-ry29RUNa0Hv5gIhy2RTVT94mHhgfdIwb5aqjBycxxj0=";
};
patches = [
# Fix for memory corruption in set_nodemask_size
(fetchpatch {
url = "https://github.com/numactl/numactl/commit/f9deba0c8404529772468d6dd01389f7dbfa5ba9.patch";
hash = "sha256-TmWfD99YaSIHA5PSsWHE91GSsdsVgVU+qIow7LOwOGw=";
})
];
outputs = [ "out" "dev" "man" ];
nativeBuildInputs = [ autoreconfHook ];