mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
wb_wc and wc_mb now checks length inside
This commit is contained in:
@ -8350,6 +8350,9 @@ my_wc_mb_euc_jp(CHARSET_INFO *c,my_wc_t wc, unsigned char *s, unsigned char *e)
|
||||
unsigned char buf[2];
|
||||
unsigned char c1;
|
||||
int ret,jp;
|
||||
|
||||
if (s >= e)
|
||||
return MY_CS_TOOSMALL;
|
||||
|
||||
if (wc<0x80)
|
||||
{
|
||||
|
Reference in New Issue
Block a user