diff options
author | David Tardon <dtardon@redhat.com> | 2017-11-08 19:54:16 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2017-11-09 18:36:36 +0100 |
commit | 945c10f42fe6d22031e7424b47481ac2cfb539be (patch) | |
tree | d279df689708e129a4d453a0f5debf3af39c7ac4 /external | |
parent | 2a1fa1f2c69480bfc14ba5613ac13b3fb1382b1b (diff) |
upload harfbuzz 1.6.3
Change-Id: Ib9920366ba32774d1e96f9dfde201975c322e6f5
Reviewed-on: https://gerrit.libreoffice.org/44540
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/harfbuzz/UnpackedTarball_harfbuzz.mk | 1 | ||||
-rw-r--r-- | external/harfbuzz/ubsan.patch | 32 |
2 files changed, 0 insertions, 33 deletions
diff --git a/external/harfbuzz/UnpackedTarball_harfbuzz.mk b/external/harfbuzz/UnpackedTarball_harfbuzz.mk index 74c990c0c1aa..8ec1c8d3ab23 100644 --- a/external/harfbuzz/UnpackedTarball_harfbuzz.mk +++ b/external/harfbuzz/UnpackedTarball_harfbuzz.mk @@ -17,7 +17,6 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,harfbuzz,0)) $(eval $(call gb_UnpackedTarball_add_patches,harfbuzz, \ external/harfbuzz/clang-cl.patch \ - external/harfbuzz/ubsan.patch \ )) ifneq ($(ENABLE_RUNTIME_OPTIMIZATIONS),TRUE) diff --git a/external/harfbuzz/ubsan.patch b/external/harfbuzz/ubsan.patch deleted file mode 100644 index b855d5f2140d..000000000000 --- a/external/harfbuzz/ubsan.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- src/hb-ot-font.cc -+++ src/hb-ot-font.cc -@@ -138,7 +138,7 @@ - return this->default_advance; - } - -- return this->table->longMetric[MIN (glyph, (uint32_t) this->num_advances - 1)].advance -+ return static_cast<OT::LongMetric const *>(this->table->longMetric)[MIN (glyph, (uint32_t) this->num_advances - 1)].advance - + this->var->get_advance_var (glyph, font->coords, font->num_coords); // TODO Optimize?! - } - }; -@@ -458,8 +458,9 @@ - } - - static void --_hb_ot_font_destroy (hb_ot_font_t *ot_font) -+_hb_ot_font_destroy (void *ot_font_) - { -+ hb_ot_font_t *ot_font = static_cast<hb_ot_font_t *>(ot_font_); - ot_font->cmap.fini (); - ot_font->h_metrics.fini (); - ot_font->v_metrics.fini (); ---- src/hb-private.hh -+++ src/hb-private.hh -@@ -461,6 +461,7 @@ - template <typename T> - inline const Type *bsearch (T *key) const - { -+ if (len == 0) return NULL; - return (const Type *) ::bsearch (key, array, len, sizeof (Type), (hb_compare_func_t) Type::cmp); - } - |