Hello community,

here is the log from the commit of package libwpd for openSUSE:Factory checked 
in at 2018-11-18 23:20:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libwpd (Old)
 and      /work/SRC/openSUSE:Factory/.libwpd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libwpd"

Sun Nov 18 23:20:38 2018 rev:42 rq:648709 version:0.10.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/libwpd/libwpd.changes    2017-09-18 
19:53:41.993575142 +0200
+++ /work/SRC/openSUSE:Factory/.libwpd.new/libwpd.changes       2018-11-18 
23:20:47.358303440 +0100
@@ -1,0 +2,11 @@
+Tue Nov 13 09:40:49 UTC 2018 - Jan Engelhardt <[email protected]>
+
+- Drop tm markers, these are undesired by legal.
+
+-------------------------------------------------------------------
+Tue Nov 13 09:07:55 UTC 2018 - Tomáš Chvátal <[email protected]>
+
+- Add patch to fix rh#1643752 bsc#1115713 CVE-2018-19208:
+  * 0001-Resolves-rhbz-1643752-bounds-check-m_currentTable-ac.patch
+
+-------------------------------------------------------------------

New:
----
  0001-Resolves-rhbz-1643752-bounds-check-m_currentTable-ac.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libwpd.spec ++++++
--- /var/tmp/diff_new_pack.X1SEZ5/_old  2018-11-18 23:20:48.026302712 +0100
+++ /var/tmp/diff_new_pack.X1SEZ5/_new  2018-11-18 23:20:48.026302712 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libwpd
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -20,11 +20,12 @@
 Name:           libwpd
 Version:        0.10.2
 Release:        0
-Summary:        Library for Importing WordPerfect (tm) Documents
-License:        LGPL-2.1+ AND MPL-2.0+
+Summary:        Library for importing WordPerfect documents
+License:        LGPL-2.1-or-later AND MPL-2.0+
 Group:          Productivity/Publishing/Word
-Url:            http://libwpd.sourceforge.net
+URL:            http://libwpd.sourceforge.net
 Source:         
http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}-%{version}.tar.xz
+Patch0:         0001-Resolves-rhbz-1643752-bounds-check-m_currentTable-ac.patch
 BuildRequires:  doxygen
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
@@ -46,7 +47,7 @@
 as an in-process component.
 
 %package -n %{libname}
-Summary:        Library for Importing WordPerfect (tm) Documents
+Summary:        Library for importing WordPerfect Documents
 Group:          System/Libraries
 
 %description -n %{libname}
@@ -56,7 +57,7 @@
 as an in-process component.
 
 %package devel
-Summary:        Library for importing WordPerfect (tm) documents
+Summary:        Development files for libwpd, a library for importing 
WordPerfect documents
 Group:          Development/Libraries/C and C++
 Requires:       %{libname} = %{version}
 Requires:       libstdc++-devel
@@ -70,15 +71,13 @@
 %package devel-doc
 Summary:        Documentation for the libwpd API
 Group:          Documentation/Other
-%if 0%{?suse_version} > 1200
 BuildArch:      noarch
-%endif
 
 %description devel-doc
 This package contains documentation for the libwpd API.
 
 %package tools
-Summary:        Library for importing WordPerfect (tm) documents
+Summary:        Tool from libwpd, a library for importing WordPerfect documents
 Group:          Productivity/Publishing/Word
 
 %description tools
@@ -87,6 +86,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden"
@@ -110,6 +110,8 @@
 %postun -n %{libname} -p /sbin/ldconfig
 
 %files -n %{libname}
+%license COPYING.LGPL
+%license COPYING.MPL
 %{_libdir}/*.so.*
 
 %files devel
@@ -124,12 +126,7 @@
 
 %files tools
 %{_bindir}/*
-%{_mandir}/man1/*.1*
-%doc ChangeLog
-%doc COPYING.LGPL
-%doc COPYING.MPL
-%doc CREDITS
-%doc NEWS
-%doc TODO
+%{_mandir}/man1/*.1%{?ext_man}
+%doc ChangeLog CREDITS NEWS
 
 %changelog

++++++ 0001-Resolves-rhbz-1643752-bounds-check-m_currentTable-ac.patch ++++++
diff -ru libwpd-0.10.2/src/lib/WP6ContentListener.cpp 
libwpd-0.10.2.new/src/lib/WP6ContentListener.cpp
--- libwpd-0.10.2/src/lib/WP6ContentListener.cpp        2017-09-08 
18:04:25.000000000 +0100
+++ libwpd-0.10.2.new/src/lib/WP6ContentListener.cpp    2018-10-30 
10:54:22.326697162 +0000
@@ -1311,7 +1311,10 @@
                m_ps->m_tableDefinition.m_columnsProperties.clear();
 
                // pull a table definition off of our stack
-               m_parseState->m_currentTable = 
m_parseState->m_tableList[m_parseState->m_nextTableIndice++];
+               auto index = m_parseState->m_nextTableIndice++;
+               if (index >= m_parseState->m_tableList.size())
+                       throw ParseException();
+               m_parseState->m_currentTable = m_parseState->m_tableList[index];
                if (!m_parseState->m_currentTable)
                        throw ParseException();
                m_parseState->m_currentTable->makeBordersConsistent();
diff -ru libwpd-0.10.2/src/lib/WPXTable.h libwpd-0.10.2.new/src/lib/WPXTable.h
--- libwpd-0.10.2/src/lib/WPXTable.h    2015-12-30 08:27:30.000000000 +0000
+++ libwpd-0.10.2.new/src/lib/WPXTable.h        2018-10-30 10:55:41.264362182 
+0000
@@ -92,6 +92,10 @@
        {
                m_tableList->push_back(table);
        }
+       size_t size() const
+       {
+               return m_tableList->size();
+       }
 
 private:
        void release();

Reply via email to