diff --git a/bsc1023760.patch b/bsc1023760.patch new file mode 100644 index 0000000..772d089 --- /dev/null +++ b/bsc1023760.patch @@ -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 + { diff --git a/mupdf.changes b/mupdf.changes index 8a183d8..e007ba4 100644 --- a/mupdf.changes +++ b/mupdf.changes @@ -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 diff --git a/mupdf.spec b/mupdf.spec index 2150d51..2132cf2 100644 --- a/mupdf.spec +++ b/mupdf.spec @@ -34,6 +34,7 @@ Patch4: CVE-2016-10141.patch Patch5: CVE-2017-5627.patch Patch6: CVE-2017-5628.patch Patch7: CVE-2017-5896.patch +Patch8: bsc1023760.patch BuildRequires: freetype-devel BuildRequires: gcc-c++ BuildRequires: jbig2dec-devel @@ -71,6 +72,7 @@ based on mupdf. %setup -q -n %{name}-%{version}-source %patch1 -p1 %patch7 -p1 +%patch8 -p1 pushd ./thirdparty/mujs %patch2 -p1