1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

wb_wc and wc_mb now checks length inside

This commit is contained in:
bar@bar.mysql.r18.ru
2003-01-27 16:46:03 +04:00
parent 7e38aa4b19
commit b92ed69491
11 changed files with 55 additions and 5 deletions

View File

@@ -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;