1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#21042 mysql client segfaults on importing a mysqldump export

- Use strxnmov to protect the "buff" variable from overrun
This commit is contained in:
msvensson@neptunus.(none)
2006-07-27 12:28:49 +02:00
parent 2ea50d6d84
commit b3bbb3789e

View File

@ -2858,7 +2858,7 @@ com_connect(String *buffer, char *line)
bzero(buff, sizeof(buff));
if (buffer)
{
strmov(buff, line);
strxnmov(buff, sizeof(buff), line, NullS);
tmp= get_arg(buff, 0);
if (tmp && *tmp)
{