mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 02:05:31 +02:00
Correct length check in my_wc_mb_filename()
This commit is contained in:
parent
e528fe79b8
commit
d85168e40d
3 changed files with 7 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue