diff options
author | J0WI <J0WI@users.noreply.github.com> | 2018-11-12 11:09:56 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-29 15:35:13 +0100 |
commit | 38c2fab4c40672459821302e7eec434b602757b8 (patch) | |
tree | 522a337b147f4513418c523079b827815ee81af0 /main/ghostscript/CVE-2017-5951.patch | |
parent | 1ca69220c2d5812e00069f528ace94bbb8fb2c6a (diff) | |
download | aports-38c2fab4c40672459821302e7eec434b602757b8.tar.bz2 aports-38c2fab4c40672459821302e7eec434b602757b8.tar.xz |
ref #9691
Diffstat (limited to 'main/ghostscript/CVE-2017-5951.patch')
-rw-r--r-- | main/ghostscript/CVE-2017-5951.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/main/ghostscript/CVE-2017-5951.patch b/main/ghostscript/CVE-2017-5951.patch deleted file mode 100644 index c419e0653b..0000000000 --- a/main/ghostscript/CVE-2017-5951.patch +++ /dev/null @@ -1,39 +0,0 @@ -From bfa6b2ecbe48edc69a7d9d22a12419aed25960b8 Mon Sep 17 00:00:00 2001 -From: Chris Liddell <chris.liddell@artifex.com> -Date: Thu, 6 Apr 2017 16:44:54 +0100 -Subject: [PATCH] Bug 697548: use the correct param list enumerator - -When we encountered dictionary in a ref_param_list, we were using the enumerator -for the "parent" param_list, rather than the enumerator for the param_list -we just created for the dictionary. That parent was usually the stack -list enumerator, and caused a segfault. - -Using the correct enumerator works better. ---- - psi/iparam.c | 7 ++++--- - 1 file changed, 4 insertions(+), 3 deletions(-) - -diff --git a/psi/iparam.c b/psi/iparam.c -index 4e63b6d..b2fa85f 100644 ---- a/psi/iparam.c -+++ b/psi/iparam.c -@@ -770,12 +770,13 @@ ref_param_read_typed(gs_param_list * plist, gs_param_name pkey, - gs_param_enumerator_t enumr; - gs_param_key_t key; - ref_type keytype; -+ dict_param_list *dlist = (dict_param_list *) pvalue->value.d.list; - - param_init_enumerator(&enumr); -- if (!(*((iparam_list *) plist)->enumerate) -- ((iparam_list *) pvalue->value.d.list, &enumr, &key, &keytype) -+ if (!(*(dlist->enumerate)) -+ ((iparam_list *) dlist, &enumr, &key, &keytype) - && keytype == t_integer) { -- ((dict_param_list *) pvalue->value.d.list)->int_keys = 1; -+ dlist->int_keys = 1; - pvalue->type = gs_param_type_dict_int_keys; - } - } --- -2.9.1 - |