diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 3f05bf72e..c7b087e4e 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -290,6 +290,11 @@ struct Sanitizer context->init (blob); + if (unlikely (!context->start)) { + context->finish (); + return blob; + } + Type *t = CastP (const_cast (context->start)); sane = t->sanitize (context);