Correct length check in my_wc_mb_filename()
This commit is contained in:
parent
e528fe79b8
commit
d85168e40d
@ -11,3 +11,6 @@ create table com1 (a int);
|
|||||||
drop table com1;
|
drop table com1;
|
||||||
create table `clock$` (a int);
|
create table `clock$` (a int);
|
||||||
drop table `clock$`;
|
drop table `clock$`;
|
||||||
|
select convert(convert(',' using filename) using binary);
|
||||||
|
convert(convert(',' using filename) using binary)
|
||||||
|
@002c
|
||||||
|
@ -19,3 +19,6 @@ drop table com1;
|
|||||||
|
|
||||||
create table `clock$` (a int);
|
create table `clock$` (a int);
|
||||||
drop table `clock$`;
|
drop table `clock$`;
|
||||||
|
|
||||||
|
select convert(convert(',' using filename) using binary);
|
||||||
|
|
||||||
|
@ -4585,7 +4585,7 @@ my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Non letter */
|
/* Non letter */
|
||||||
if (s + 5 > e)
|
if (s + 4 > e)
|
||||||
return MY_CS_TOOSMALL5;
|
return MY_CS_TOOSMALL5;
|
||||||
|
|
||||||
*s++= hex[(wc >> 12) & 15];
|
*s++= hex[(wc >> 12) & 15];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user