summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2017-10-22 21:27:15 +0200
committerDavid Tardon <dtardon@redhat.com>2017-10-23 09:12:09 +0200
commit1bad74aca003fa6a7a376ef9498b9ba6c64b6223 (patch)
tree2fcc0abd1570a0e9784cda4c663cecb1c86f8fc6 /external
parentb17294826830e278d060c876cf4f94a9b4ec16cc (diff)
upload libvisio 0.1.6
Change-Id: I7864603e47e9f9337323ff4eed4e08f20bf5a756 Reviewed-on: https://gerrit.libreoffice.org/43703 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'external')
-rw-r--r--external/libvisio/0001-fix-debug-build.patch.140
-rw-r--r--external/libvisio/ExternalProject_libvisio.mk2
-rw-r--r--external/libvisio/UnpackedTarball_libvisio.mk1
-rw-r--r--external/libvisio/ubsan.patch8
4 files changed, 42 insertions, 9 deletions
diff --git a/external/libvisio/0001-fix-debug-build.patch.1 b/external/libvisio/0001-fix-debug-build.patch.1
new file mode 100644
index 000000000000..4146e6e8bfe7
--- /dev/null
+++ b/external/libvisio/0001-fix-debug-build.patch.1
@@ -0,0 +1,40 @@
+From 15f3774513d0181ad90da382297c175cc3424462 Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon@redhat.com>
+Date: Sun, 22 Oct 2017 21:24:43 +0200
+Subject: [PATCH] fix debug build
+
+Change-Id: I860b6034e5d833900652aec8c3647eeae185e538
+---
+ src/lib/VDXParser.cpp | 2 +-
+ src/lib/VSDXParser.cpp | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/lib/VDXParser.cpp b/src/lib/VDXParser.cpp
+index f2f3154..0f07efd 100644
+--- a/src/lib/VDXParser.cpp
++++ b/src/lib/VDXParser.cpp
+@@ -916,7 +916,7 @@ xmlChar *libvisio::VDXParser::readStringData(xmlTextReaderPtr reader)
+ ret = xmlTextReaderRead(reader);
+ if (1 == ret && stringValue)
+ {
+- VSD_DEBUG_MSG(("VDXParser::readStringData stringValue %s\n", (const char *)stringValue));
++ VSD_DEBUG_MSG(("VDXParser::readStringData stringValue %s\n", (const char *)stringValue.get()));
+ return stringValue.release();
+ }
+ }
+diff --git a/src/lib/VSDXParser.cpp b/src/lib/VSDXParser.cpp
+index 488be3a..efd46b9 100644
+--- a/src/lib/VSDXParser.cpp
++++ b/src/lib/VSDXParser.cpp
+@@ -555,7 +555,7 @@ xmlChar *libvisio::VSDXParser::readStringData(xmlTextReaderPtr reader)
+ std::unique_ptr<xmlChar, void (*)(void *)> stringValue(xmlTextReaderGetAttribute(reader, BAD_CAST("V")), xmlFree);
+ if (stringValue)
+ {
+- VSD_DEBUG_MSG(("VSDXParser::readStringData stringValue %s\n", (const char *)stringValue));
++ VSD_DEBUG_MSG(("VSDXParser::readStringData stringValue %s\n", (const char *)stringValue.get()));
+ return stringValue.release();
+ }
+ return nullptr;
+--
+2.14.1
+
diff --git a/external/libvisio/ExternalProject_libvisio.mk b/external/libvisio/ExternalProject_libvisio.mk
index 2f212ceac249..da34277cbf9e 100644
--- a/external/libvisio/ExternalProject_libvisio.mk
+++ b/external/libvisio/ExternalProject_libvisio.mk
@@ -20,7 +20,6 @@ $(eval $(call gb_ExternalProject_use_externals,libvisio,\
icu \
libxml2 \
revenge \
- zlib \
))
$(call gb_ExternalProject_get_state_target,libvisio,build) :
@@ -31,6 +30,7 @@ $(call gb_ExternalProject_get_state_target,libvisio,build) :
--enable-static \
--disable-shared \
--without-docs \
+ --disable-tests \
--disable-tools \
$(if $(ENABLE_DEBUG),--enable-debug,--disable-debug) \
--disable-werror \
diff --git a/external/libvisio/UnpackedTarball_libvisio.mk b/external/libvisio/UnpackedTarball_libvisio.mk
index eba43f3b7a6e..1ab8b392c4e8 100644
--- a/external/libvisio/UnpackedTarball_libvisio.mk
+++ b/external/libvisio/UnpackedTarball_libvisio.mk
@@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_update_autoconf_configs,libvisio))
$(eval $(call gb_UnpackedTarball_add_patches,libvisio, \
external/libvisio/ubsan.patch \
+ external/libvisio/0001-fix-debug-build.patch.1 \
))
ifeq ($(COM_IS_CLANG),TRUE)
diff --git a/external/libvisio/ubsan.patch b/external/libvisio/ubsan.patch
index ec67b5c9cd4a..7bba63fda7a1 100644
--- a/external/libvisio/ubsan.patch
+++ b/external/libvisio/ubsan.patch
@@ -9,11 +9,3 @@
const char *srcLimit = (const char *)src + characters.size();
while (src < srcLimit)
{
-@@ -3285,6 +3285,7 @@
- _handleLevelChange(level);
- librevenge::RVNGString text;
- std::vector<unsigned char> tmpData(layerMem.m_data.size());
-+ if (!layerMem.m_data.empty())
- memcpy(&tmpData[0], layerMem.m_data.getDataBuffer(), layerMem.m_data.size());
- appendCharacters(text, tmpData, layerMem.m_format);
-