[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Wed Mar 28 21:07:28 UTC 2018


 src/hb-font-private.hh |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 8c9451107d46c87ed0e50e718977f0c286972f3b
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed Mar 28 14:06:58 2018 -0700

    Fix one UBSan warning
    
    Fixes https://github.com/harfbuzz/harfbuzz/issues/935

diff --git a/src/hb-font-private.hh b/src/hb-font-private.hh
index 992152f1..7ba16cde 100644
--- a/src/hb-font-private.hh
+++ b/src/hb-font-private.hh
@@ -83,7 +83,11 @@ struct hb_font_funcs_t {
       HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
 #undef HB_FONT_FUNC_IMPLEMENT
     } f;
-    void (*array[VAR]) (void);
+    void (*array[0
+#define HB_FONT_FUNC_IMPLEMENT(name) +1
+      HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_FONT_FUNC_IMPLEMENT
+		]) (void);
   } get;
 };
 


More information about the HarfBuzz mailing list