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:
Theodore Ts'o 2019-05-12 04:56:51 -04:00
parent 0ba33facfc
commit 15f0d8d0ba

View File

@ -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);
}