Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 839b1153 authored by Theodore Ts'o's avatar Theodore Ts'o Committed by Jaegeuk Kim
Browse files

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



Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Cc: Gabriel Krisman Bertazi <krisman@collabora.com>
parent 82eacc0a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
		}