From d3436792fc3b76ab7fa731a86478d19c23a022dd5276d5167fc91ea28f16c816 Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Mon, 24 Apr 2017 07:24:14 +0000 Subject: [PATCH] - security update: * CVE-2017-5436 [bsc#1035204] + graphite2-CVE-2017-5436.patch OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/graphite2?expand=0&rev=46 --- graphite2-CVE-2017-5436.patch | 23 +++++++++++++++++++++++ graphite2.changes | 7 +++++++ graphite2.spec | 4 +++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 graphite2-CVE-2017-5436.patch diff --git a/graphite2-CVE-2017-5436.patch b/graphite2-CVE-2017-5436.patch new file mode 100644 index 0000000..bb4b339 --- /dev/null +++ b/graphite2-CVE-2017-5436.patch @@ -0,0 +1,23 @@ +From 1ce331d5548b98ed8b818532b2556d6f2c7a3b83 Mon Sep 17 00:00:00 2001 +From: Martin Hosken +Date: Thu, 9 Mar 2017 22:04:04 +0000 +Subject: [PATCH] Ensure features have enough space. Fix from Mozilla + +--- + src/FeatureMap.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/FeatureMap.cpp b/src/FeatureMap.cpp +index b8c8405..83bd5f6 100644 +--- a/src/FeatureMap.cpp ++++ b/src/FeatureMap.cpp +@@ -275,7 +275,7 @@ bool FeatureRef::applyValToFeature(uint32 val, Features & pDest) const + else + if (pDest.m_pMap!=&m_pFace->theSill().theFeatureMap()) + return false; //incompatible +- pDest.reserve(m_index); ++ pDest.reserve(m_index+1); + pDest[m_index] &= ~m_mask; + pDest[m_index] |= (uint32(val) << m_bits); + return true; + diff --git a/graphite2.changes b/graphite2.changes index 08d04a4..9bbb89b 100644 --- a/graphite2.changes +++ b/graphite2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Apr 24 07:22:01 UTC 2017 - pgajdos@suse.com + +- security update: + * CVE-2017-5436 [bsc#1035204] + + graphite2-CVE-2017-5436.patch + ------------------------------------------------------------------- Mon Nov 21 10:53:29 UTC 2016 - pgajdos@suse.com diff --git a/graphite2.spec b/graphite2.spec index 39f78f4..27a4f32 100644 --- a/graphite2.spec +++ b/graphite2.spec @@ -1,7 +1,7 @@ # # spec file for package graphite2 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,7 @@ Source1: baselibs.conf Patch0: graphite2-1.2.0-cmakepath.patch Patch1: graphite-nonvoid-return.patch Patch2: link-gcc-shared.diff +Patch3: graphite2-CVE-2017-5436.patch BuildRequires: asciidoc BuildRequires: cmake BuildRequires: fontconfig-devel @@ -82,6 +83,7 @@ This package contains the %{name} development files. %patch0 -p1 %patch1 -p1 %patch2 +%patch3 -p1 %build %cmake \