1
0
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:
unknown
2003-01-27 16:46:03 +04:00
parent ecb55f4307
commit e7660c64d7
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;