[Libreoffice-commits] core.git: external/libvisio
Stephan Bergmann
sbergman at redhat.com
Sun Dec 27 12:19:36 PST 2015
external/libvisio/ubsan.patch | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 60a51eaf486d53491c1ce8723e3f5fb901b66515
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Sun Dec 27 21:18:30 2015 +0100
external/libvisio: Avoid undefined behavior
Change-Id: Ia86ebe7cd48de3f42dd95a11be7926f1e83d9113
diff --git a/external/libvisio/ubsan.patch b/external/libvisio/ubsan.patch
index d80f7eb..ec67b5c 100644
--- a/external/libvisio/ubsan.patch
+++ b/external/libvisio/ubsan.patch
@@ -1,5 +1,14 @@
--- src/lib/VSDContentCollector.cpp
+++ src/lib/VSDContentCollector.cpp
+@@ -3220,7 +3220,7 @@
+ }
+ if (U_SUCCESS(status) && conv)
+ {
+- const char *src = (const char *)&characters[0];
++ const char *src = (const char *)characters.data();
+ const char *srcLimit = (const char *)src + characters.size();
+ while (src < srcLimit)
+ {
@@ -3285,6 +3285,7 @@
_handleLevelChange(level);
librevenge::RVNGString text;
More information about the Libreoffice-commits
mailing list