• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ghostscript/0003-Bug-697799-have-.eqproc-check-its-parameters.patch
Peter KorsgaardPeter Korsgaard committed 874becfd01928 Apr 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 4f83478c88c2e05d6e8d79ca4557eb039354d2f3 Mon Sep 17 00:00:00 2001
2
From: Chris Liddell <chris.liddell@artifex.com>
3
Date: Thu, 27 Apr 2017 13:03:33 +0100
4
Subject: [PATCH] Bug 697799: have .eqproc check its parameters
5
​
6
The Ghostscript custom operator .eqproc was not check the number or type of
7
the parameters it was given.
8
​
9
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10
---
11
 psi/zmisc3.c | 6 ++++++
12
 1 file changed, 6 insertions(+)
13
​
14
diff --git a/psi/zmisc3.c b/psi/zmisc3.c
15
index 54b304246..37293ff4b 100644
16
--- a/psi/zmisc3.c
17
+++ b/psi/zmisc3.c
18
@@ -56,6 +56,12 @@ zeqproc(i_ctx_t *i_ctx_p)
19
     ref2_t stack[MAX_DEPTH + 1];
20
     ref2_t *top = stack;
21
 
22
+    if (ref_stack_count(&o_stack) < 2)
23
+        return_error(gs_error_stackunderflow);
24
+    if (!r_is_array(op - 1) || !r_is_array(op)) {
25
+        return_error(gs_error_typecheck);
26
+    }
27
+
28
     make_array(&stack[0].proc1, 0, 1, op - 1);
29
     make_array(&stack[0].proc2, 0, 1, op);
30
     for (;;) {
31
-- 
32
2.11.0
33
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.