/[packages]/updates/5/ghostscript/current/SOURCES/ghostscript-9.20-cve-2017-9739.patch
ViewVC logotype

Contents of /updates/5/ghostscript/current/SOURCES/ghostscript-9.20-cve-2017-9739.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1160897 - (show annotations) (download)
Thu Sep 28 09:45:10 2017 UTC (6 years, 6 months ago) by ns80
File size: 692 byte(s)
- add patches for CVE-2017-9611, CVE-2017-9612, CVE-2017-9726, CVE-2017-9727, CVE-2017-9739, CVE-2017-9835, CVE-2017-11714 (mga#21630)

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 diff --git a/base/ttinterp.c b/base/ttinterp.c
11 index af457e8..adf3f0c 100644
12 --- a/base/ttinterp.c
13 +++ b/base/ttinterp.c
14 @@ -1794,6 +1794,12 @@ static int nInstrCount=0;
15
16 static void Ins_JMPR( INS_ARG )
17 {
18 + if ( BOUNDS(CUR.IP + args[0], CUR.codeSize ) )
19 + {
20 + CUR.error = TT_Err_Invalid_Reference;
21 + return;
22 + }
23 +
24 CUR.IP += (Int)(args[0]);
25 CUR.step_ins = FALSE;
26
27 --
28 2.9.1
29

  ViewVC Help
Powered by ViewVC 1.1.30