mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 15:22:18 -05:00
667e777b4e
* gnu/packages/patches/mupdf-CVE-2016-7504.patch, gnu/packages/patches/mupdf-CVE-2016-7505.patch gnu/packages/patches/mupdf-CVE-2016-7506.patch gnu/packages/patches/mupdf-CVE-2016-7563.patch gnu/packages/patches/mupdf-CVE-2016-7564.patch gnu/packages/patches/mupdf-CVE-2016-9017.patch gnu/packages/patches/mupdf-CVE-2016-9136.patch: New files. * gnu/local.mk (dist_patch_DATA): Add them. * gnu/packages/pdf.scm (mupdf)[source]: Use them.
32 lines
840 B
Diff
32 lines
840 B
Diff
Fix CVE-2016-7505:
|
|
|
|
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-7505
|
|
http://bugs.ghostscript.com/show_bug.cgi?id=697140
|
|
|
|
Patch copied from upstream source repository:
|
|
http://git.ghostscript.com/?p=mujs.git;a=commitdiff;h=8c805b4eb19cf2af689c860b77e6111d2ee439d5
|
|
|
|
From 8c805b4eb19cf2af689c860b77e6111d2ee439d5 Mon Sep 17 00:00:00 2001
|
|
From: Tor Andersson <tor.andersson@artifex.com>
|
|
Date: Wed, 21 Sep 2016 15:21:04 +0200
|
|
Subject: [PATCH] Fix bug 697140: Overflow check in ascii division in strtod.
|
|
|
|
---
|
|
jsdtoa.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/jsdtoa.c b/jsdtoa.c
|
|
index 2e52368..920c1a7 100644
|
|
--- a/thirdparty/mujs/jsdtoa.c
|
|
+++ b/thirdparty/mujs/jsdtoa.c
|
|
@@ -735,6 +735,7 @@ xx:
|
|
n -= c<<b;
|
|
*p++ = c + '0';
|
|
(*na)++;
|
|
+ if (*na >= Ndig) break; /* abort if overflowing */
|
|
}
|
|
*p = 0;
|
|
}
|
|
--
|
|
2.10.2
|
|
|