diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-11-04 10:23:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-11-04 10:25:14 +0100 |
commit | 99f7aacd5b39a0f79351d8d7568b2e43d39878cb (patch) | |
tree | fee7f369c0a7f26fbda99631b403c6ca32f232dd /external | |
parent | external/harfbuzz: Work around ASan out of bounds warning (diff) | |
download | core-99f7aacd5b39a0f79351d8d7568b2e43d39878cb.tar.gz core-99f7aacd5b39a0f79351d8d7568b2e43d39878cb.zip |
external/harfbuzz: -fsanitize=function
Change-Id: Ie72eec98f1337e895b81c4ebebeefa4861a5a6a1
Diffstat (limited to 'external')
-rw-r--r-- | external/harfbuzz/ubsan.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/external/harfbuzz/ubsan.patch b/external/harfbuzz/ubsan.patch index 8fa6abe373cf..5f8f0080e361 100644 --- a/external/harfbuzz/ubsan.patch +++ b/external/harfbuzz/ubsan.patch @@ -9,6 +9,17 @@ } }; +@@ -394,8 +394,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-ot-map-private.hh +++ src/hb-ot-map-private.hh @@ -52,8 +52,11 @@ |