SHA256
1
0
forked from pool/mupdf
mupdf/CVE-2016-10133.patch
Ismail Dönmez adf0a52264 - Add CVE-2016-10132.patch, CVE-2016-10133.patch and
CVE-2016-10141.patch to fix CVE-2016-10132, CVE-2016-10133 and
  CVE-2016-10141 bsc#1019877

OBS-URL: https://build.opensuse.org/package/show/Publishing/mupdf?expand=0&rev=45
2017-01-24 12:04:55 +00:00

27 lines
699 B
Diff

From 77ab465f1c394bb77f00966cd950650f3f53cb24 Mon Sep 17 00:00:00 2001
From: Tor Andersson <tor.andersson@gmail.com>
Date: Thu, 12 Jan 2017 14:47:01 +0100
Subject: [PATCH 1/1] Fix 697401: Error when dropping extra arguments to
lightweight functions.
---
jsrun.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jsrun.c b/jsrun.c
index ee80845..782a6f9 100644
--- a/jsrun.c
+++ b/jsrun.c
@@ -937,7 +937,7 @@ static void jsR_calllwfunction(js_State *J, int n, js_Function *F, js_Environmen
jsR_savescope(J, scope);
if (n > F->numparams) {
- js_pop(J, F->numparams - n);
+ js_pop(J, n - F->numparams);
n = F->numparams;
}
for (i = n; i < F->varlen; ++i)
--
2.9.1