projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ba33fa
)
unicode: add missing check for an error return from utf8lookup()
author
Theodore Ts'o
<tytso@mit.edu>
Sun, 12 May 2019 08:56:51 +0000
(
04:56
-0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 12 May 2019 08:56:51 +0000
(
04:56
-0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: Gabriel Krisman Bertazi <krisman@collabora.com>
fs/unicode/utf8-norm.c
patch
|
blob
|
history
diff --git
a/fs/unicode/utf8-norm.c
b/fs/unicode/utf8-norm.c
index
20d440c
..
801ed6d
100644
(file)
--- a/
fs/unicode/utf8-norm.c
+++ b/
fs/unicode/utf8-norm.c
@@
-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);
}