Hello community, here is the log from the commit of package mupdf for openSUSE:Factory checked in at 2017-02-15 10:00:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mupdf (Old) and /work/SRC/openSUSE:Factory/.mupdf.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mupdf" Changes: -------- --- /work/SRC/openSUSE:Factory/mupdf/mupdf.changes 2017-02-10 09:46:18.936852495 +0100 +++ /work/SRC/openSUSE:Factory/.mupdf.new/mupdf.changes 2017-02-15 10:00:08.817090475 +0100 @@ -1,0 +2,12 @@ +Fri Feb 10 12:19:43 UTC 2017 - idon...@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 - idon...@suse.com + +- Add CVE-2017-5896.patch to fix a heap overflow + CVE-2017-5896 bsc#1023761 bsc#1024679 + +------------------------------------------------------------------- New: ---- CVE-2017-5896.patch bsc1023760.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mupdf.spec ++++++ --- /var/tmp/diff_new_pack.khftcZ/_old 2017-02-15 10:00:11.004782335 +0100 +++ /var/tmp/diff_new_pack.khftcZ/_new 2017-02-15 10:00:11.004782335 +0100 @@ -33,6 +33,8 @@ 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 @@ -69,6 +71,8 @@ %prep %setup -q -n %{name}-%{version}-source %patch1 -p1 +%patch7 -p1 +%patch8 -p1 pushd ./thirdparty/mujs %patch2 -p1 ++++++ CVE-2017-5896.patch ++++++ X-Git-Url: http://git.ghostscript.com/?p=mupdf.git;a=blobdiff_plain;f=source%2Ffitz%2Fpixmap.c;h=f1291dc29d49ead44c10785fd014a0d995e45a91;hp=a8317127da7af6d39eb86fe3ca02cb4106a9b262;hb=2c4e5867ee699b1081527bc6c6ea0e99a35a5c27;hpb=90fa6203ad032fe161d85a3e580941ce3d1216f0 diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c index a831712..f1291dc 100644 --- a/source/fitz/pixmap.c +++ b/source/fitz/pixmap.c @@ -1104,6 +1104,7 @@ fz_subsample_pixmap_ARM(unsigned char *ptr, int w, int h, int f, int factor, "@STACK:r1,<9>,factor,n,fwd,back,back2,fwd2,divX,back4,fwd4,fwd3,divY,back5,divXY\n" "ldr r4, [r13,#4*22] @ r4 = divXY \n" "ldr r5, [r13,#4*11] @ for (nn = n; nn > 0; n--) { \n" + "ldr r8, [r13,#4*17] @ r8 = back4 \n" "18: @ \n" "mov r14,#0 @ r14= v = 0 \n" "sub r5, r5, r1, LSL #8 @ for (xx = x; xx > 0; x--) { \n" @@ -1120,7 +1121,7 @@ fz_subsample_pixmap_ARM(unsigned char *ptr, int w, int h, int f, int factor, "mul r14,r4, r14 @ r14= v *= divX \n" "mov r14,r14,LSR #16 @ r14= v >>= 16 \n" "strb r14,[r9], #1 @ *d++ = r14 \n" - "sub r0, r0, r8 @ s -= back2 \n" + "sub r0, r0, r8 @ s -= back4 \n" "subs r5, r5, #1 @ n-- \n" "bgt 18b @ } \n" "21: @ \n" @@ -1249,6 +1250,7 @@ fz_subsample_pixmap(fz_context *ctx, fz_pixmap *tile, int factor) x += f; if (x > 0) { + int back4 = x * n - 1; div = x * y; for (nn = n; nn > 0; nn--) { @@ -1263,7 +1265,7 @@ fz_subsample_pixmap(fz_context *ctx, fz_pixmap *tile, int factor) s -= back5; } *d++ = v / div; - s -= back2; + s -= back4; } } } ++++++ bsc1023760.patch ++++++ 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 {