提交 93269129 编写于 作者: B Behdad Esfahbod

[kerx] Fix crash

上级 6ee40104
...@@ -264,6 +264,8 @@ struct hb_sanitize_context_t : ...@@ -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. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册