[Libreoffice-commits] core.git: external/harfbuzz

Stephan Bergmann sbergman at redhat.com
Fri Dec 30 20:12:37 UTC 2016


 external/harfbuzz/ubsan.patch |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit ca9a08bbf7d42727a93b5f725784308a3590c0fe
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Dec 30 21:10:44 2016 +0100

    external/harfbuzz: Silence -fsanitize=nonnull-attribute
    
    ...as reported during CppunitTest_sw_odfimport
    
    Change-Id: I3c8542d46cf1106c9910a04ed1f953459c7c7ea5

diff --git a/external/harfbuzz/ubsan.patch b/external/harfbuzz/ubsan.patch
index 5f8f008..36b5a45 100644
--- a/external/harfbuzz/ubsan.patch
+++ b/external/harfbuzz/ubsan.patch
@@ -52,3 +52,13 @@
    unsigned int da, db;
    const char *p;
  
+--- src/hb-private.hh
++++ src/hb-private.hh
+@@ -466,6 +466,7 @@
+   template <typename T>
+   inline const Type *bsearch (T *key) const
+   {
++    if (len == 0) return nullptr;
+     return (const Type *) ::bsearch (key, array, len, sizeof (Type), (hb_compare_func_t) Type::cmp);
+   }
+ 


More information about the Libreoffice-commits mailing list