diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh index 3717c4d3329f8a5a5c7fbf61b53bc013811e2f05..537275dbad3b881fe252486e896068fb77eda071 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. */