From 17d765058560cf3fb323b26249be8a1ebef06884 Mon Sep 17 00:00:00 2001 From: Benjamin Hipple Date: Sun, 10 Jun 2018 16:01:05 -0400 Subject: [PATCH] mupdf: apply CVE-2018-10289 patch (#41802) Fixes mupdf issue in https://github.com/NixOS/nixpkgs/issues/41748 by applying patch from https://bugs.ghostscript.com/show_bug.cgi?id=699271 --- pkgs/applications/misc/mupdf/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/mupdf/default.nix b/pkgs/applications/misc/mupdf/default.nix index fbc7da07021..a8458e3432c 100644 --- a/pkgs/applications/misc/mupdf/default.nix +++ b/pkgs/applications/misc/mupdf/default.nix @@ -23,12 +23,15 @@ in stdenv.mkDerivation rec { }; patches = [ + (fetchpatch { + # CVE-2018-10289 + url = "https://bugs.ghostscript.com/attachment.cgi?id=15230"; + sha256 = "0jmpacxd9930g6k57kda9jrcrbk75whdlv8xwmqg5jwn848qvy4q"; + }) ] - - # Use shared libraries to decrease size - ++ stdenv.lib.optional (!stdenv.isDarwin) ./mupdf-1.13-shared_libs-1.patch - - ++ stdenv.lib.optional stdenv.isDarwin ./darwin.patch + # Use shared libraries to decrease size + ++ stdenv.lib.optional (!stdenv.isDarwin) ./mupdf-1.13-shared_libs-1.patch + ++ stdenv.lib.optional stdenv.isDarwin ./darwin.patch ; postPatch = ''