unicode: add missing check for an error return from utf8lookup()
Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: Gabriel Krisman Bertazi <krisman@collabora.com>
This commit is contained in:
parent
0ba33facfc
commit
15f0d8d0ba
|
@ -714,6 +714,8 @@ int utf8byte(struct utf8cursor *u8c)
|
|||
}
|
||||
|
||||
leaf = utf8lookup(u8c->data, u8c->hangul, u8c->s);
|
||||
if (!leaf)
|
||||
return -1;
|
||||
ccc = LEAF_CCC(leaf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue