mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
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
This commit is contained in:
parent
464cadc99d
commit
a49144c8c9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue