Skip to content

Commit

Permalink
minizip: apply patch for CVE-2023-45853
Browse files Browse the repository at this point in the history
Upstream PR: madler/zlib#843
  • Loading branch information
LeSuisse authored and bacchanalia committed Jun 24, 2024
1 parent c065747 commit fd4703b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/development/libraries/minizip/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
{ lib, stdenv, zlib, autoreconfHook }:
{ lib, stdenv, zlib, autoreconfHook, fetchpatch }:

stdenv.mkDerivation {
pname = "minizip";
version = zlib.version;
inherit (zlib) src;

patches = [
(fetchpatch {
name = "CVE-2023-45853.patch";
url = "https://github.com/madler/zlib/commit/73331a6a0481067628f065ffe87bb1d8f787d10c.patch";
hash = "sha256-yayfe1g9HsvgMN28WF/MYkH7dGMX4PsK53FcnfL3InM=";
})
];

patchFlags = [ "-p3" ];

nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib ];

Expand Down

0 comments on commit fd4703b

Please sign in to comment.