[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Sun Nov 25 05:27:46 UTC 2018


 src/hb-machinery.hh |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 9326912941e5927bcfb4689689c954b9a3995baa
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sun Nov 25 00:27:23 2018 -0500

    [kerx] Fix crash

diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh
index 3717c4d3..537275db 100644
--- a/src/hb-machinery.hh
+++ b/src/hb-machinery.hh
@@ -264,6 +264,8 @@ struct hb_sanitize_context_t :
   {
     reset_object ();
 
+    if (!obj) return;
+
     const char *obj_start = (const char *) obj;
     const char *obj_end = (const char *) obj + obj->get_size ();
     assert (obj_start <= obj_end); /* Must not overflow. */


More information about the HarfBuzz mailing list