diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-12-30 21:10:44 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-12-30 21:10:44 +0100 |
commit | ca9a08bbf7d42727a93b5f725784308a3590c0fe (patch) | |
tree | ab66e9c603758a35442cdc12eb1ab5e64244d3ae /external | |
parent | c48362288d2ca96967b4c40f0e6191ee9918b636 (diff) |
external/harfbuzz: Silence -fsanitize=nonnull-attribute
...as reported during CppunitTest_sw_odfimport
Change-Id: I3c8542d46cf1106c9910a04ed1f953459c7c7ea5
Diffstat (limited to 'external')
-rw-r--r-- | external/harfbuzz/ubsan.patch | 10 |
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); + } + |