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
82eacc0a18
commit
839b115309
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue