summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2015-12-07 09:20:31 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2015-12-07 09:20:31 +0200
commitd85168e40d12de12c119b98ea92c35f3c2fe1f3f (patch)
treec9712e1061e4e04dbe3e8e92b33e38c1ac395c6c /strings
parente528fe79b8479000e1e4ed20de1682bc385ad82a (diff)
downloadmariadb-git-d85168e40d12de12c119b98ea92c35f3c2fe1f3f.tar.gz
Correct length check in my_wc_mb_filename()
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-utf8.c b/strings/ctype-utf8.c
index edcac2774f8..2dd7f5e6b92 100644
--- a/strings/ctype-utf8.c
+++ b/strings/ctype-utf8.c
@@ -4585,7 +4585,7 @@ my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
}
/* Non letter */
- if (s + 5 > e)
+ if (s + 4 > e)
return MY_CS_TOOSMALL5;
*s++= hex[(wc >> 12) & 15];