diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-12-07 09:20:31 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-12-07 09:20:31 +0200 |
commit | d85168e40d12de12c119b98ea92c35f3c2fe1f3f (patch) | |
tree | c9712e1061e4e04dbe3e8e92b33e38c1ac395c6c /strings | |
parent | e528fe79b8479000e1e4ed20de1682bc385ad82a (diff) | |
download | mariadb-git-d85168e40d12de12c119b98ea92c35f3c2fe1f3f.tar.gz |
Correct length check in my_wc_mb_filename()
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-utf8.c | 2 |
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]; |