Commit a49144c8 authored by unknown's avatar unknown

Bug#21042 mysql client segfaults on importing a mysqldump export

 - Use strxnmov to protect the "buff" variable from overrun


client/mysql.cc:
  Use strxnmov to protect the "buff" variable from overrun
parent 464cadc9
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment