summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-11-04 10:23:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-11-04 10:25:14 +0100
commit99f7aacd5b39a0f79351d8d7568b2e43d39878cb (patch)
treefee7f369c0a7f26fbda99631b403c6ca32f232dd /external
parent6694ce6b542367074667e4445a6b7f50568a2729 (diff)
external/harfbuzz: -fsanitize=function
Change-Id: Ie72eec98f1337e895b81c4ebebeefa4861a5a6a1
Diffstat (limited to 'external')
-rw-r--r--external/harfbuzz/ubsan.patch11
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 @@