mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
wb_wc and wc_mb now checks length inside
This commit is contained in:
@ -706,7 +706,7 @@ copy_and_convert(char *to, uint32 to_length, CHARSET_INFO *to_cs,
|
||||
char *to_start= to;
|
||||
uchar *to_end= (uchar*) to+to_length;
|
||||
|
||||
while ((uchar*) from < from_end)
|
||||
while (1)
|
||||
{
|
||||
if ((cnvres=from_cs->mb_wc(from_cs, &wc, (uchar*) from, from_end)) > 0)
|
||||
from+= cnvres;
|
||||
|
Reference in New Issue
Block a user