aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/mupdf-CVE-2016-7563.patch
blob: 288c9ab2dfa93d8cd138ce4c31dd2800bc3b5548 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Fix CVE-2016-7563:

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-7563
http://bugs.ghostscript.com/show_bug.cgi?id=697136

Patch copied from upstream source repository:
http://git.ghostscript.com/?p=mujs.git;a=commitdiff;h=f8234d830e17fc5e8fe09eb76d86dad3f6233c59

From f8234d830e17fc5e8fe09eb76d86dad3f6233c59 Mon Sep 17 00:00:00 2001
From: Tor Andersson <tor.andersson@artifex.com>
Date: Tue, 20 Sep 2016 17:11:32 +0200
Subject: [PATCH] Fix bug 697136.

We were unconditionally reading the next character if we encountered
a '*' in a multi-line comment; possibly reading past the end of
the input.
---
 jslex.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/jslex.c b/jslex.c
index 7b80800..cbd0eeb 100644
--- a/thirdparty/mujs/jslex.c
+++ b/thirdparty/mujs/jslex.c
@@ -225,7 +225,8 @@ static int lexcomment(js_State *J)
 			if (jsY_accept(J, '/'))
 				return 0;
 		}
-		jsY_next(J);
+		else
+			jsY_next(J);
 	}
 	return -1;
 }
-- 
2.10.2

Enable SHPC PCI Hotplug driver, now built-in only....Mark H Weaver 2018-08-18gnu: linux-libre: Update to 4.18.1....Mark H Weaver 2018-07-04gnu: Remove linux-libre@4.1....Mark H Weaver 2018-06-05gnu: linux-libre: Update to 4.17....Mark H Weaver 2018-05-21gnu: linux-libre: Enable build for aarch64-linux....Vagrant Cascadian 2018-05-11pack: Relocatable wrapper now properly maps the current UID/GID....Ludovic Courtès 2018-05-10pack: Add '--relocatable'....Ludovic Courtès 2018-04-11gnu: linux-libre: Update to 4.16.1....Mark H Weaver 2018-01-30gnu: linux-libre: Update to 4.15, while retaining 4.14 LTS....Mark H Weaver 2018-01-30gnu: linux-libre: Update configuration files to latest releases....Mark H Weaver 2018-01-30gnu: linux-libre: NVME core support is now built-in....Mark H Weaver