Skip to content

Commit

Permalink
unicode: add missing check for an error return from utf8lookup()
Browse files Browse the repository at this point in the history
Signed-off-by: Theodore Ts'o <[email protected]>
Cc: Gabriel Krisman Bertazi <[email protected]>
  • Loading branch information
tytso committed May 12, 2019
1 parent 0ba33fa commit 15f0d8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/unicode/utf8-norm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 15f0d8d

Please sign in to comment.