提交 15f0d8d0 编写于 作者: T Theodore Ts'o

unicode: add missing check for an error return from utf8lookup()

Signed-off-by: NTheodore Ts'o <tytso@mit.edu>
Cc: Gabriel Krisman Bertazi <krisman@collabora.com>
上级 0ba33fac
...@@ -714,6 +714,8 @@ int utf8byte(struct utf8cursor *u8c) ...@@ -714,6 +714,8 @@ int utf8byte(struct utf8cursor *u8c)
} }
leaf = utf8lookup(u8c->data, u8c->hangul, u8c->s); leaf = utf8lookup(u8c->data, u8c->hangul, u8c->s);
if (!leaf)
return -1;
ccc = LEAF_CCC(leaf); ccc = LEAF_CCC(leaf);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册