diff options
Diffstat (limited to 'meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9739.patch')
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9739.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9739.patch b/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9739.patch deleted file mode 100644 index 69a94df7b9..0000000000 --- a/meta/recipes-extended/ghostscript/ghostscript/CVE-2017-9739.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From c501a58f8d5650c8ba21d447c0d6f07eafcb0f15 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chris Liddell <chris.liddell@artifex.com> | ||
3 | Date: Fri, 16 Jun 2017 08:29:25 +0100 | ||
4 | Subject: [PATCH] Bug 698063: Bounds check Ins_JMPR | ||
5 | |||
6 | --- | ||
7 | base/ttinterp.c | 6 ++++++ | ||
8 | 1 file changed, 6 insertions(+) | ||
9 | |||
10 | --- end of original header | ||
11 | |||
12 | CVE: CVE-2017-9739 | ||
13 | |||
14 | Upstream-Status: Backport [git://git.ghostscript.com/ghostpdl.git] | ||
15 | |||
16 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
17 | |||
18 | diff --git a/base/ttinterp.c b/base/ttinterp.c | ||
19 | index af457e8..adf3f0c 100644 | ||
20 | --- a/base/ttinterp.c | ||
21 | +++ b/base/ttinterp.c | ||
22 | @@ -1794,6 +1794,12 @@ static int nInstrCount=0; | ||
23 | |||
24 | static void Ins_JMPR( INS_ARG ) | ||
25 | { | ||
26 | + if ( BOUNDS(CUR.IP + args[0], CUR.codeSize ) ) | ||
27 | + { | ||
28 | + CUR.error = TT_Err_Invalid_Reference; | ||
29 | + return; | ||
30 | + } | ||
31 | + | ||
32 | CUR.IP += (Int)(args[0]); | ||
33 | CUR.step_ins = FALSE; | ||
34 | |||
35 | -- | ||
36 | 1.7.9.5 | ||
37 | |||