nettools: apply patch for CVE-2025-46836

https://github.com/ecki/net-tools/security/advisories/GHSA-pfwf-h6m3-63wf
This commit is contained in:
Thomas Gerbet
2025-05-16 02:06:15 +02:00
parent b21c2d0de4
commit bd5e71fad8

View File

@@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
fetchpatch,
}:
stdenv.mkDerivation rec {
@@ -13,6 +14,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-smJDWlJB6Jv6UcPKvVEzdTlS96e3uT8y4Iy52W9YDWk=";
};
patches = [
(fetchpatch {
name = "CVE-2025-46836.patch";
url = "https://github.com/ecki/net-tools/commit/7a8f42fb20013a1493d8cae1c43436f85e656f2d.patch";
hash = "sha256-2R9giETNN3e2t1DPQj0kb4uYCXpkBxnF8grWIBLM7s0=";
})
];
preBuild = ''
cp ${./config.h} config.h
'';