[kerx] Fix crash
This commit is contained in:
parent
6ee401049d
commit
9326912941
|
@ -264,6 +264,8 @@ struct hb_sanitize_context_t :
|
||||||
{
|
{
|
||||||
reset_object ();
|
reset_object ();
|
||||||
|
|
||||||
|
if (!obj) return;
|
||||||
|
|
||||||
const char *obj_start = (const char *) obj;
|
const char *obj_start = (const char *) obj;
|
||||||
const char *obj_end = (const char *) obj + obj->get_size ();
|
const char *obj_end = (const char *) obj + obj->get_size ();
|
||||||
assert (obj_start <= obj_end); /* Must not overflow. */
|
assert (obj_start <= obj_end); /* Must not overflow. */
|
||||||
|
|
Loading…
Reference in New Issue