- Add bsc1023760.patch to fix writing svg output to stdout if no

output specified bsc#1023760

OBS-URL: https://build.opensuse.org/package/show/Publishing/mupdf?expand=0&rev=50
This commit is contained in:
Ismail Dönmez 2017-02-10 12:21:56 +00:00 committed by Git OBS Bridge
parent 6c7559ad02
commit a462c990d8
3 changed files with 21 additions and 0 deletions

13
bsc1023760.patch Normal file
View File

@ -0,0 +1,13 @@
Index: mupdf-1.10a-source/source/tools/mudraw.c
===================================================================
--- mupdf-1.10a-source.orig/source/tools/mudraw.c
+++ mupdf-1.10a-source/source/tools/mudraw.c
@@ -720,7 +720,7 @@ static void dodrawpage(fz_context *ctx,
char buf[512];
fz_output *out;
- if (!strcmp(output, "-"))
+ if (!output || !strcmp(output, "-"))
out = fz_stdout(ctx);
else
{

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 10 12:19:43 UTC 2017 - idonmez@suse.com
- Add bsc1023760.patch to fix writing svg output to stdout if no
output specified bsc#1023760
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 10 10:56:31 UTC 2017 - idonmez@suse.com Fri Feb 10 10:56:31 UTC 2017 - idonmez@suse.com

View File

@ -34,6 +34,7 @@ Patch4: CVE-2016-10141.patch
Patch5: CVE-2017-5627.patch Patch5: CVE-2017-5627.patch
Patch6: CVE-2017-5628.patch Patch6: CVE-2017-5628.patch
Patch7: CVE-2017-5896.patch Patch7: CVE-2017-5896.patch
Patch8: bsc1023760.patch
BuildRequires: freetype-devel BuildRequires: freetype-devel
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: jbig2dec-devel BuildRequires: jbig2dec-devel
@ -71,6 +72,7 @@ based on mupdf.
%setup -q -n %{name}-%{version}-source %setup -q -n %{name}-%{version}-source
%patch1 -p1 %patch1 -p1
%patch7 -p1 %patch7 -p1
%patch8 -p1
pushd ./thirdparty/mujs pushd ./thirdparty/mujs
%patch2 -p1 %patch2 -p1