summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2021-12-21 18:22:21 +0000
committerGitHub <noreply@github.com>2021-12-21 18:22:21 +0000
commitcbdbb39ad62e753366dd2b257b16994009e66bf8 (patch)
tree85e0ce93c7c4ddb71572195e76f55bae9c9c8420
parentMerge pull request #151376 from mweinelt/21.05/firefox (diff)
parentzydis: add patch for CVE-2021-41253 (diff)
downloadnixpkgs-cbdbb39ad62e753366dd2b257b16994009e66bf8.tar.gz
Merge pull request #149426 from risicle/ris-zydis-3.1.0-CVE-2021-41253-r21.05
[21.05] zydis: add patch for CVE-2021-41253
-rw-r--r--pkgs/development/libraries/zydis/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/zydis/default.nix b/pkgs/development/libraries/zydis/default.nix
index dd3f4b916314..e59c517c8c99 100644
--- a/pkgs/development/libraries/zydis/default.nix
+++ b/pkgs/development/libraries/zydis/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, cmake }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
stdenv.mkDerivation rec {
pname = "zydis";
@@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
+ patches = [
+ (fetchpatch {
+ name = "CVE-2021-41253.patch";
+ url = "https://github.com/zyantific/zydis/commit/330b259583ade789886ce11af2ebcd030097dcbf.patch";
+ sha256 = "137lvqcm5fabv82f11c28skczb0hrmqh7i9a7hj2121p0nd729rr";
+ })
+ ];
+
nativeBuildInputs = [ cmake ];
meta = with lib; {