Commit a49144c8 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
    {