[kerx] Fix crash

This commit is contained in:
Behdad Esfahbod 2018-11-25 00:27:23 -05:00
parent 6ee401049d
commit 9326912941
1 changed files with 2 additions and 0 deletions

View File

@ -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. */