summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2006-07-27 12:28:49 +0200
committermsvensson@neptunus.(none) <>2006-07-27 12:28:49 +0200
commitb3bbb3789e2bcac169b9a20ca33f15c2d341a734 (patch)
tree3085869fa996c9b3e3fca7ac75e46d5bc05a8da3 /client
parent2ea50d6d8474ebba82bab36ebc9376b0cb60e2ea (diff)
downloadmariadb-git-b3bbb3789e2bcac169b9a20ca33f15c2d341a734.tar.gz
Bug#21042 mysql client segfaults on importing a mysqldump export
- Use strxnmov to protect the "buff" variable from overrun
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 22534324aca..5c0b5ce04fe 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -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)
{