From b462edcb5c295f19190a376dda59e34c7066599d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Aug 2018 20:49:47 +0100 Subject: app-text/ghostscript-gpl : import from gentoo, version bump, added 12 patches to fix https://www.kb.cert.org/vuls/id/332928 --- .../files/VU332928-githashb326a716.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 app-text/ghostscript-gpl/files/VU332928-githashb326a716.patch (limited to 'app-text/ghostscript-gpl/files/VU332928-githashb326a716.patch') diff --git a/app-text/ghostscript-gpl/files/VU332928-githashb326a716.patch b/app-text/ghostscript-gpl/files/VU332928-githashb326a716.patch new file mode 100644 index 00000000..2c8533fa --- /dev/null +++ b/app-text/ghostscript-gpl/files/VU332928-githashb326a716.patch @@ -0,0 +1,27 @@ +From: Chris Liddell +Date: Tue, 21 Aug 2018 15:24:05 +0000 (+0100) +Subject: Bug 699655: Properly check the return value.... +X-Git-Tag: ghostpdl-9.24rc1~24 +X-Git-Url: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=b326a716 + +Bug 699655: Properly check the return value.... + +...when getting a value from a dictionary +--- + +diff --git a/psi/zcolor.c b/psi/zcolor.c +index 4c0f258..e27baf9 100644 +--- a/psi/zcolor.c ++++ b/psi/zcolor.c +@@ -283,8 +283,9 @@ zsetcolor(i_ctx_t * i_ctx_p) + if (r_has_type(op, t_dictionary)) { + ref *pImpl, pPatInst; + +- code = dict_find_string(op, "Implementation", &pImpl); +- if (code != 0) { ++ if ((code = dict_find_string(op, "Implementation", &pImpl)) < 0) ++ return code; ++ if (code > 0) { + code = array_get(imemory, pImpl, 0, &pPatInst); + if (code < 0) + return code; -- cgit v1.2.3