From 19c5c57e72da4f3289cd216fd7b190035eea3187 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 31 Jul 2022 17:29:52 +0100 Subject: [PATCH] libtiff: add patch for CVE-2022-34526 --- pkgs/development/libraries/libtiff/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/libtiff/default.nix b/pkgs/development/libraries/libtiff/default.nix index 404a4004fd44..7f6d11d9e715 100644 --- a/pkgs/development/libraries/libtiff/default.nix +++ b/pkgs/development/libraries/libtiff/default.nix @@ -36,6 +36,11 @@ stdenv.mkDerivation rec { # libc++abi 11 has an `#include `, this picks up files name # `version` in the project's include paths ./rename-version.patch + (fetchpatch { + name = "CVE-2022-34526.patch"; + url = "https://gitlab.com/libtiff/libtiff/-/commit/275735d0354e39c0ac1dc3c0db2120d6f31d1990.patch"; + sha256 = "sha256-faKsdJjvQwNdkAKjYm4vubvZvnULt9zz4l53zBFr67s="; + }) ]; postPatch = ''