diff options
author | David Tardon <dtardon@redhat.com> | 2020-02-07 18:45:39 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2020-02-08 16:26:23 +0100 |
commit | 85dc497f1556ebc53f482e382f48e98b9560b983 (patch) | |
tree | ef7b628f8fce5400bf69e3d85a4e335a4d076e82 /external/libcdr | |
parent | 9c9f76dd5b6fb115e521ac6568673c7a10879192 (diff) |
upload libcdr 0.1.6
Change-Id: I569f8ed92358982edbc419a6b687652ffd4fcb14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88236
Tested-by: Jenkins
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'external/libcdr')
-rw-r--r-- | external/libcdr/0001-Add-missing-include.patch.1 | 33 | ||||
-rw-r--r-- | external/libcdr/UnpackedTarball_libcdr.mk | 6 | ||||
-rw-r--r-- | external/libcdr/ubsan.patch | 64 |
3 files changed, 0 insertions, 103 deletions
diff --git a/external/libcdr/0001-Add-missing-include.patch.1 b/external/libcdr/0001-Add-missing-include.patch.1 deleted file mode 100644 index 93f2b6ccc6fc..000000000000 --- a/external/libcdr/0001-Add-missing-include.patch.1 +++ /dev/null @@ -1,33 +0,0 @@ -From 00c4b331df8157dff7c251323d00ec2d63691dfb Mon Sep 17 00:00:00 2001 -From: Miklos Vajna <vmiklos@collabora.com> -Date: Mon, 28 Jan 2019 09:04:56 +0100 -Subject: [PATCH] Add missing include - -CMXParser.cpp:42:43: error: expected ')' - CDR_DEBUG_MSG(("invalid tag length %" PRIu16 "\n", tagLength)); - ^ -CMXParser.cpp:42:19: note: to match this '(' - CDR_DEBUG_MSG(("invalid tag length %" PRIu16 "\n", tagLength)); - ^ -1 error generated. - -Change-Id: I9575a96327a62dc6c44950d35a8740242e1a4433 ---- - src/lib/CMXParser.cpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/lib/CMXParser.cpp b/src/lib/CMXParser.cpp -index 78cc417..02852c9 100644 ---- a/src/lib/CMXParser.cpp -+++ b/src/lib/CMXParser.cpp -@@ -14,6 +14,7 @@ - #include <math.h> - #include <stdlib.h> - #include <utility> -+#include <cinttypes> - - #include "libcdr_utils.h" - #include "CDRPath.h" --- -2.21.0 - diff --git a/external/libcdr/UnpackedTarball_libcdr.mk b/external/libcdr/UnpackedTarball_libcdr.mk index 1a72fe8be15c..fd227a2f7445 100644 --- a/external/libcdr/UnpackedTarball_libcdr.mk +++ b/external/libcdr/UnpackedTarball_libcdr.mk @@ -15,14 +15,8 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,libcdr,0)) $(eval $(call gb_UnpackedTarball_update_autoconf_configs,libcdr)) -# * external/libcdr/0001-Add-missing-include.patch.1 is from upstream master (see content for -# details); -# * external/libcdr/ubsan.patch is upstream at <https://gerrit.libreoffice.org/#/c/73182/> "Avoid UB -# converting from double to int via unsigned": $(eval $(call gb_UnpackedTarball_add_patches,libcdr, \ external/libcdr/libcdr-visibility-win.patch \ - external/libcdr/0001-Add-missing-include.patch.1 \ - external/libcdr/ubsan.patch \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libcdr/ubsan.patch b/external/libcdr/ubsan.patch deleted file mode 100644 index 316c47a45ab9..000000000000 --- a/external/libcdr/ubsan.patch +++ /dev/null @@ -1,64 +0,0 @@ ---- src/lib/CDRPath.cpp -+++ src/lib/CDRPath.cpp -@@ -796,7 +796,7 @@ void CDRPath::writeOut(librevenge::RVNGString &path, librevenge::RVNGString &vie - - - width = qy - py; -- viewBox.sprintf("%i %i %i %i", 0, 0, (unsigned)(2540*(qx - px)), (unsigned)(2540*(qy - py))); -+ viewBox.sprintf("%i %i %i %i", 0, 0, (int)(2540*(qx - px)), (int)(2540*(qy - py))); - - for (unsigned i = 0; i < vec.count(); ++i) - { -@@ -804,38 +804,38 @@ void CDRPath::writeOut(librevenge::RVNGString &path, librevenge::RVNGString &vie - if (vec[i]["librevenge:path-action"]->getStr() == "M") - { - // 2540 is 2.54*1000, 2.54 in = 1 inch -- sElement.sprintf("M%i %i", (unsigned)((vec[i]["svg:x"]->getDouble()-px)*2540), -- (unsigned)((vec[i]["svg:y"]->getDouble()-py)*2540)); -+ sElement.sprintf("M%i %i", (int)((vec[i]["svg:x"]->getDouble()-px)*2540), -+ (int)((vec[i]["svg:y"]->getDouble()-py)*2540)); - path.append(sElement); - } - else if (vec[i]["librevenge:path-action"]->getStr() == "L") - { -- sElement.sprintf("L%i %i", (unsigned)((vec[i]["svg:x"]->getDouble()-px)*2540), -- (unsigned)((vec[i]["svg:y"]->getDouble()-py)*2540)); -+ sElement.sprintf("L%i %i", (int)((vec[i]["svg:x"]->getDouble()-px)*2540), -+ (int)((vec[i]["svg:y"]->getDouble()-py)*2540)); - path.append(sElement); - } - else if (vec[i]["librevenge:path-action"]->getStr() == "C") - { -- sElement.sprintf("C%i %i %i %i %i %i", (unsigned)((vec[i]["svg:x1"]->getDouble()-px)*2540), -- (unsigned)((vec[i]["svg:y1"]->getDouble()-py)*2540), (unsigned)((vec[i]["svg:x2"]->getDouble()-px)*2540), -- (unsigned)((vec[i]["svg:y2"]->getDouble()-py)*2540), (unsigned)((vec[i]["svg:x"]->getDouble()-px)*2540), -- (unsigned)((vec[i]["svg:y"]->getDouble()-py)*2540)); -+ sElement.sprintf("C%i %i %i %i %i %i", (int)((vec[i]["svg:x1"]->getDouble()-px)*2540), -+ (int)((vec[i]["svg:y1"]->getDouble()-py)*2540), (int)((vec[i]["svg:x2"]->getDouble()-px)*2540), -+ (int)((vec[i]["svg:y2"]->getDouble()-py)*2540), (int)((vec[i]["svg:x"]->getDouble()-px)*2540), -+ (int)((vec[i]["svg:y"]->getDouble()-py)*2540)); - path.append(sElement); - } - else if (vec[i]["librevenge:path-action"]->getStr() == "Q") - { -- sElement.sprintf("Q%i %i %i %i", (unsigned)((vec[i]["svg:x1"]->getDouble()-px)*2540), -- (unsigned)((vec[i]["svg:y1"]->getDouble()-py)*2540), (unsigned)((vec[i]["svg:x"]->getDouble()-px)*2540), -- (unsigned)((vec[i]["svg:y"]->getDouble()-py)*2540)); -+ sElement.sprintf("Q%i %i %i %i", (int)((vec[i]["svg:x1"]->getDouble()-px)*2540), -+ (int)((vec[i]["svg:y1"]->getDouble()-py)*2540), (int)((vec[i]["svg:x"]->getDouble()-px)*2540), -+ (int)((vec[i]["svg:y"]->getDouble()-py)*2540)); - path.append(sElement); - } - else if (vec[i]["librevenge:path-action"]->getStr() == "A") - { -- sElement.sprintf("A%i %i %i %i %i %i %i", (unsigned)((vec[i]["svg:rx"]->getDouble())*2540), -- (unsigned)((vec[i]["svg:ry"]->getDouble())*2540), (vec[i]["librevenge:rotate"] ? vec[i]["librevenge:rotate"]->getInt() : 0), -+ sElement.sprintf("A%i %i %i %i %i %i %i", (int)((vec[i]["svg:rx"]->getDouble())*2540), -+ (int)((vec[i]["svg:ry"]->getDouble())*2540), (vec[i]["librevenge:rotate"] ? vec[i]["librevenge:rotate"]->getInt() : 0), - (vec[i]["librevenge:large-arc"] ? vec[i]["librevenge:large-arc"]->getInt() : 1), - (vec[i]["librevenge:sweep"] ? vec[i]["librevenge:sweep"]->getInt() : 1), -- (unsigned)((vec[i]["svg:x"]->getDouble()-px)*2540), (unsigned)((vec[i]["svg:y"]->getDouble()-py)*2540)); -+ (int)((vec[i]["svg:x"]->getDouble()-px)*2540), (int)((vec[i]["svg:y"]->getDouble()-py)*2540)); - path.append(sElement); - } - else if (vec[i]["librevenge:path-action"]->getStr() == "Z") |