summaryrefslogtreecommitdiffstats
path: root/external/libvisio/ubsan.patch
blob: c9ffbd98f4b64da0cfb013161d2180c3d7669bf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/lib/VSDContentCollector.cpp
+++ src/lib/VSDContentCollector.cpp
@@ -3220,7 +3220,7 @@
     }
     if (U_SUCCESS(status) && conv)
     {
-      const auto *src = (const char *)&characters[0];
+      const auto *src = (const char *)characters.data();
       const char *srcLimit = (const char *)src + characters.size();
       while (src < srcLimit)
       {