Unverified Commit 93ed1b44 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

Merge #262722: minizip: apply patch for CVE-2023-45853

...into staging
parents c0449976 282d9cd2
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
{ lib, stdenv, zlib, autoreconfHook }:
{ lib, stdenv, zlib, autoreconfHook, fetchpatch }:

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

  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 ];