commit | 48146e5612f6d272d6962f6829c6d64a31edef89 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Mon May 10 20:07:56 2010 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Mon May 10 20:07:56 2010 -0400 |
tree | 8e2d6fda9a8019c536671849ec510b3a85c810e5 | |
parent | d2c2ca8faf62fc380d4717d286556139a62d2356 [diff] |
Don't fail sanitize on NULL data
diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 3f05bf7..c7b087e 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh
@@ -290,6 +290,11 @@ context->init (blob); + if (unlikely (!context->start)) { + context->finish (); + return blob; + } + Type *t = CastP<Type> (const_cast<char *> (context->start)); sane = t->sanitize (context);