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

New commits:
commit ca9a08bbf7d42727a93b5f725784308a3590c0fe
Author: Stephan Bergmann <sberg...@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);
+   }
+ 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to