Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 23/42] ghostscript: drop incorrectly applied patch
Date: Thu,  8 Mar 2018 20:17:45 +0200	[thread overview]
Message-ID: <20180308181804.31261-23-alexander.kanavin@linux.intel.com> (raw)
In-Reply-To: <20180308181804.31261-1-alexander.kanavin@linux.intel.com>

The patch was adding a change to the source file that was already there,
so the lines of code were repeated twice. This didn't create a bug or a
security issue, but it may well have.

Long story:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 .../ghostscript/ghostscript/CVE-2016-7977.patch    | 33 ----------------------
 .../ghostscript/ghostscript_9.21.bb                |  1 -
 2 files changed, 34 deletions(-)
 delete mode 100644 meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7977.patch

diff --git a/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7977.patch b/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7977.patch
deleted file mode 100644
index b7eed1241e7..00000000000
--- a/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7977.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 8abd22010eb4db0fb1b10e430d5f5d83e015ef70 Mon Sep 17 00:00:00 2001
-From: Chris Liddell <chris.liddell@artifex.com>
-Date: Mon, 3 Oct 2016 01:46:28 +0100
-Subject: [PATCH] Bug 697169: Be rigorous with SAFER permissions
-
-Once we've opened our input file from the command line, enforce the SAFER
-rules.
-
-Upstream-Status: Backport
-CVE: CVE-2016-7977
-
-Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
----
- psi/zfile.c | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/psi/zfile.c b/psi/zfile.c
-index b6caea2..2c6c958 100644
---- a/psi/zfile.c
-+++ b/psi/zfile.c
-@@ -1081,6 +1081,9 @@ lib_file_open(gs_file_path_ptr  lib_path, const gs_memory_t *mem, i_ctx_t *i_ctx
-     gs_main_instance *minst = get_minst_from_memory(mem);
-     int code;
- 
-+    if (i_ctx_p && starting_arg_file)
-+        i_ctx_p->starting_arg_file = false;
-+
-     /* when starting arg files (@ files) iodev_default is not yet set */
-     if (iodev == 0)
-         iodev = (gx_io_device *)gx_io_device_table[0];
--- 
-2.10.2
-
diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.21.bb b/meta/recipes-extended/ghostscript/ghostscript_9.21.bb
index bf985c44a3e..50ec7e20c5a 100644
--- a/meta/recipes-extended/ghostscript/ghostscript_9.21.bb
+++ b/meta/recipes-extended/ghostscript/ghostscript_9.21.bb
@@ -32,7 +32,6 @@ SRC_URI = "${SRC_URI_BASE} \
            file://ghostscript-9.02-genarch.patch \
            file://objarch.h \
            file://cups-no-gcrypt.patch \
-           file://CVE-2016-7977.patch \
            file://CVE-2017-7207.patch \
            file://CVE-2017-5951.patch \
            file://CVE-2017-7975.patch \
-- 
2.16.1



  parent reply	other threads:[~2018-03-08 18:25 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-08 18:17 [PATCH 01/42] expat: refresh patches Alexander Kanavin
2018-03-08 18:17 ` [PATCH 02/42] grub: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 03/42] shared-mime-info: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 04/42] serf: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 05/42] nspr: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 06/42] libical: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 07/42] gmp: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 08/42] gnutls: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 09/42] libffi: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 10/42] libksba: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 11/42] libtiff: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 12/42] gstreamer: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 13/42] kmod: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 14/42] dtc: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 15/42] lttng: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 16/42] wayland: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 17/42] clutter: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 18/42] xset: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 19/42] at: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 20/42] bash: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 21/42] ethtool: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 22/42] ghostscript: " Alexander Kanavin
2018-03-08 18:17 ` Alexander Kanavin [this message]
2018-03-08 18:17 ` [PATCH 24/42] libidn: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 25/42] mdadm: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 26/42] pam: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 27/42] parted: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 28/42] tcp-wrappers: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 29/42] iptables: drop unnecessary patches Alexander Kanavin
2018-03-08 18:17 ` [PATCH 30/42] apt: refresh patches Alexander Kanavin
2018-03-08 18:17 ` [PATCH 31/42] automake: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 32/42] intltool: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 33/42] mtd: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 34/42] syslinux: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 35/42] ppp: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 36/42] util-linux: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 37/42] zlib: " Alexander Kanavin
2018-03-08 18:18 ` [PATCH 38/42] irda-utils: " Alexander Kanavin
2018-03-08 18:18 ` [PATCH 39/42] python-numpy: update to 1.14.1 Alexander Kanavin
2018-03-08 18:18 ` [PATCH 40/42] python: refresh patches Alexander Kanavin
2018-03-08 18:18 ` [PATCH 41/42] perl: " Alexander Kanavin
2018-03-08 18:18 ` [PATCH 42/42] perl: remove perl-enable-gdbm.patch Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180308181804.31261-23-alexander.kanavin@linux.intel.com \
    --to=alexander.kanavin@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox