Kaydet (Commit) 488f70e0 authored tarafından David Tardon's avatar David Tardon

upload libstaroffice 0.0.6

Change-Id: Id3a845174e7cebad999895bc57e2d05f36f3d597
Reviewed-on: https://gerrit.libreoffice.org/53499Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst d482ecdf
......@@ -7881,7 +7881,7 @@ libo_CHECK_SYSTEM_MODULE([libqxp],[QXP],[libqxp-0.0])
libo_CHECK_SYSTEM_MODULE([libzmf],[ZMF],[libzmf-0.0])
libo_CHECK_SYSTEM_MODULE([libstaroffice],[STAROFFICE],[libstaroffice-0.0])
libo_PKG_VERSION([STAROFFICE], [libstaroffice-0.0], [0.0.4])
libo_PKG_VERSION([STAROFFICE], [libstaroffice-0.0], [0.0.6])
dnl ===================================================================
dnl Check for system lcms2
......
......@@ -225,8 +225,8 @@ export RHINO_SHA256SUM := 1fb458d6aab06932693cc8a9b6e4e70944ee1ff052fa63606e3131
export RHINO_TARBALL := 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
export SERF_SHA256SUM := 6988d394b62c3494635b6f0760bc3079f9a0cd380baf0f6b075af1eb9fa5e700
export SERF_TARBALL := serf-1.2.1.tar.bz2
export STAROFFICE_SHA256SUM := 315507add58068aa6d5c437e7c2a6fd1abe684515915152c6cf338fc588da982
export STAROFFICE_VERSION_MICRO := 5
export STAROFFICE_SHA256SUM := 6b00e1ed8194e6072be4441025d1b888e39365727ed5b23e0e8c92c4009d1ec4
export STAROFFICE_VERSION_MICRO := 6
export STAROFFICE_TARBALL := libstaroffice-0.0.$(STAROFFICE_VERSION_MICRO).tar.xz
export SWING_SHA256SUM := 64585ac36a81291a58269ec5347e7e3e2e8596dbacb9221015c208191333c6e1
export SWING_TARBALL := 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
......
From d6c34e98a6adb060ad42b9f1c60a1e8036bc27ff Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Thu, 26 Apr 2018 14:21:06 +0200
Subject: [PATCH] add missing include for std::max
---
src/lib/STOFFChart.cxx | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/STOFFChart.cxx b/src/lib/STOFFChart.cxx
index cd1566f..3e7310c 100644
--- a/src/lib/STOFFChart.cxx
+++ b/src/lib/STOFFChart.cxx
@@ -37,6 +37,7 @@
*
*/
+#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
--
2.14.3
From 59f29dd735bf5890ea29fdde809afcf111463a65 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Mon, 12 Mar 2018 20:33:54 +0100
Subject: [PATCH] fix null ptr deref. if decryption failed
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Thanks to Antti Levomäki and Christian Jalio from Forcepoint.
---
src/lib/StarObjectDraw.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/lib/StarObjectDraw.cxx b/src/lib/StarObjectDraw.cxx
index fd3411a..8a19b1c 100644
--- a/src/lib/StarObjectDraw.cxx
+++ b/src/lib/StarObjectDraw.cxx
@@ -199,10 +199,11 @@ try
if the user mask does correspond to the real mask.
*/
input=StarEncryption::decodeStream(input, StarEncryption::getMaskToDecodeStream(firstByte, 0x44));
- if (input) {
- zone.setInput(input);
- input->seek(0, librevenge::RVNG_SEEK_SET);
+ if (!input) {
+ STOFF_DEBUG_MSG(("StarObjectDraw::readDrawDocument: decryption failed\n"));
+ return false;
}
+ zone.setInput(input);
}
input->seek(0, librevenge::RVNG_SEEK_SET);
std::shared_ptr<StarObjectModel> model(new StarObjectModel(*this, true));
--
2.14.3
......@@ -63,6 +63,7 @@ $(eval $(call gb_Library_add_generated_exception_objects,staroffice,\
UnpackedTarball/libstaroffice/src/lib/STOFFSpreadsheetDecoder \
UnpackedTarball/libstaroffice/src/lib/STOFFSpreadsheetEncoder \
UnpackedTarball/libstaroffice/src/lib/STOFFSpreadsheetListener \
UnpackedTarball/libstaroffice/src/lib/STOFFStarMathToMMLConverter \
UnpackedTarball/libstaroffice/src/lib/STOFFStringStream \
UnpackedTarball/libstaroffice/src/lib/STOFFSubDocument \
UnpackedTarball/libstaroffice/src/lib/STOFFTable \
......@@ -92,6 +93,7 @@ $(eval $(call gb_Library_add_generated_exception_objects,staroffice,\
UnpackedTarball/libstaroffice/src/lib/StarObject \
UnpackedTarball/libstaroffice/src/lib/StarObjectChart \
UnpackedTarball/libstaroffice/src/lib/StarObjectDraw \
UnpackedTarball/libstaroffice/src/lib/StarObjectMath \
UnpackedTarball/libstaroffice/src/lib/StarObjectModel \
UnpackedTarball/libstaroffice/src/lib/StarObjectNumericRuler \
UnpackedTarball/libstaroffice/src/lib/StarObjectPageStyle \
......
......@@ -37,8 +37,8 @@ $(eval $(call gb_UnpackedTarball_add_patches,libstaroffice, \
))
endif
$(eval $(call gb_UnpackedTarball_add_patches,libstaroffice, \
external/libstaroffice/0001-fix-null-ptr-deref.-if-decryption-failed.patch.1 \
$(eval $(call gb_UnpackedTarball_add_patches,libstaroffice,\
external/libstaroffice/0001-add-missing-include-for-std-max.patch.1 \
))
# vim: set noet sw=4 ts=4:
......@@ -308,10 +308,10 @@
"dest-filename": "external/tarballs/librevenge-0.0.4.tar.bz2"
},
{
"url": "https://dev-www.libreoffice.org/src/libstaroffice-0.0.5.tar.xz",
"sha256": "315507add58068aa6d5c437e7c2a6fd1abe684515915152c6cf338fc588da982",
"url": "https://dev-www.libreoffice.org/src/libstaroffice-0.0.6.tar.xz",
"sha256": "6b00e1ed8194e6072be4441025d1b888e39365727ed5b23e0e8c92c4009d1ec4",
"type": "file",
"dest-filename": "external/tarballs/libstaroffice-0.0.5.tar.xz"
"dest-filename": "external/tarballs/libstaroffice-0.0.6.tar.xz"
},
{
"url": "https://dev-www.libreoffice.org/src/ltm-1.0.zip",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment