Skip to content

Commit

Permalink
Merge pull request NixOS#213647 from LeSuisse/libtiff-CVE-2022-48281
Browse files Browse the repository at this point in the history
libtiff: apply patch for CVE-2022-48281
  • Loading branch information
mweinelt committed Jan 31, 2023
2 parents 33d4318 + c86f20c commit db24dfc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/libraries/libtiff/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib, stdenv
, fetchFromGitLab
, fetchpatch
, nix-update-script

, autoreconfHook
Expand Down Expand Up @@ -38,6 +39,11 @@ stdenv.mkDerivation rec {
# libc++abi 11 has an `#include <version>`, this picks up files name
# `version` in the project's include paths
./rename-version.patch
(fetchpatch {
name = "CVE-2022-48281.patch";
url = "https://gitlab.com/libtiff/libtiff/-/commit/d1b6b9c1b3cae2d9e37754506c1ad8f4f7b646b5.diff";
sha256 = "sha256-FWUlyJyHXac6fuM5f9PG33kcF5Bm4fyFmYnaDal46iM=";
})
];

postPatch = ''
Expand Down

0 comments on commit db24dfc

Please sign in to comment.