summaryrefslogtreecommitdiffstats
path: root/external/harfbuzz
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-12-30 21:10:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-12-30 21:10:44 +0100
commitca9a08bbf7d42727a93b5f725784308a3590c0fe (patch)
treeab66e9c603758a35442cdc12eb1ab5e64244d3ae /external/harfbuzz
parentUpdated core (diff)
downloadcore-ca9a08bbf7d42727a93b5f725784308a3590c0fe.tar.gz
core-ca9a08bbf7d42727a93b5f725784308a3590c0fe.zip
external/harfbuzz: Silence -fsanitize=nonnull-attribute
...as reported during CppunitTest_sw_odfimport Change-Id: I3c8542d46cf1106c9910a04ed1f953459c7c7ea5
Diffstat (limited to 'external/harfbuzz')
-rw-r--r--external/harfbuzz/ubsan.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/external/harfbuzz/ubsan.patch b/external/harfbuzz/ubsan.patch
index 5f8f0080e361..36b5a4519483 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);
+ }
+