diff options
author | 2017-02-09 22:10:20 +0100 | |
---|---|---|
committer | 2017-02-09 22:10:20 +0100 | |
commit | 54f3dbbee64dfa9de3193a16daa5ff254d4963b2 (patch) | |
tree | 17d79bd1cc9c07bd9c613e368e697fa9833d993a /app-text/mupdf/files | |
parent | media-libs/opencv: remove old (diff) | |
download | gentoo-54f3dbbee64dfa9de3193a16daa5ff254d4963b2.tar.gz gentoo-54f3dbbee64dfa9de3193a16daa5ff254d4963b2.tar.bz2 gentoo-54f3dbbee64dfa9de3193a16daa5ff254d4963b2.zip |
app-text/mupdf: Revbump to fix null pointer dereference (bug 608702) and heap overflow (bug 608712).
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-text/mupdf/files')
-rw-r--r-- | app-text/mupdf/files/mupdf-1.10a-heap-overflow.patch | 40 | ||||
-rw-r--r-- | app-text/mupdf/files/mupdf-1.10a-null-pointer.patch | 21 |
2 files changed, 61 insertions, 0 deletions
diff --git a/app-text/mupdf/files/mupdf-1.10a-heap-overflow.patch b/app-text/mupdf/files/mupdf-1.10a-heap-overflow.patch new file mode 100644 index 000000000000..8b350ea8590e --- /dev/null +++ b/app-text/mupdf/files/mupdf-1.10a-heap-overflow.patch @@ -0,0 +1,40 @@ +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; + } + } + } diff --git a/app-text/mupdf/files/mupdf-1.10a-null-pointer.patch b/app-text/mupdf/files/mupdf-1.10a-null-pointer.patch new file mode 100644 index 000000000000..9a459b28011e --- /dev/null +++ b/app-text/mupdf/files/mupdf-1.10a-null-pointer.patch @@ -0,0 +1,21 @@ +From: Sebastian Rasmussen <sebras@gmail.com> +Date: Sat, 4 Feb 2017 05:21:20 +0000 (+0100) +Subject: Bug 697514: Write SVG output to stdout if no output specified. +X-Git-Url: http://git.ghostscript.com/?p=mupdf.git;a=commitdiff_plain;h=40ac85bfb676bb4373bda4b18f9fd90268c9f1e9 + +Bug 697514: Write SVG output to stdout if no output specified. +--- + +diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c +index 95b3440..720e7ff 100644 +--- a/source/tools/mudraw.c ++++ b/source/tools/mudraw.c +@@ -578,7 +578,7 @@ static void dodrawpage(fz_context *ctx, fz_page *page, fz_display_list *list, in + char buf[512]; + fz_output *out; + +- if (!strcmp(output, "-")) ++ if (!output || !strcmp(output, "-")) + out = fz_stdout(ctx); + else + { |