Accepting request 826898 from home:dirkmueller:branches:LibreOffice:Factory

- update to 0.10.3:
  - Drop outdated MSVC project files.
  - Fix a couple of issues found by oss-fuzz.
  - Fix some potential memory leaks.
  - Use a bit less memory when parsing WP5/WP6 documents with images.
  - Switch from --enable-werror to --disable-werror as configure default.
  - Fix a potential out-of-bounds data access. (rhbz#1643752)
- remove 0001-Resolves-rhbz-1643752-bounds-check-m_currentTable-ac.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/826898
OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libwpd?expand=0&rev=24
This commit is contained in:
Tomáš Chvátal
2020-08-16 07:58:06 +00:00
committed by Git OBS Bridge
parent 5e207b451a
commit 25b14add13
5 changed files with 17 additions and 36 deletions

View File

@@ -1,29 +0,0 @@
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();

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:323f68beaf4f35e5a4d7daffb4703d0566698280109210fa4eaa90dea27d6610
size 536400

BIN
libwpd-0.10.3.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sat Aug 15 22:00:33 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 0.10.3:
- Drop outdated MSVC project files.
- Fix a couple of issues found by oss-fuzz.
- Fix some potential memory leaks.
- Use a bit less memory when parsing WP5/WP6 documents with images.
- Switch from --enable-werror to --disable-werror as configure default.
- Fix a potential out-of-bounds data access. (rhbz#1643752)
- remove 0001-Resolves-rhbz-1643752-bounds-check-m_currentTable-ac.patch (upstream)
-------------------------------------------------------------------
Tue Nov 13 09:40:49 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libwpd
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,13 @@
%define libname libwpd-0_10-10
Name: libwpd
Version: 0.10.2
Version: 0.10.3
Release: 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
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++
@@ -86,7 +85,6 @@ supported: html, raw, text
%prep
%setup -q
%patch0 -p1
%build
export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden"