summaryrefslogtreecommitdiff
path: root/mysql-test/r/mysql.result
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-07-31 14:22:32 +0200
committerunknown <msvensson@neptunus.(none)>2006-07-31 14:22:32 +0200
commit71c896c2bf806c93a7685065af2943ab37678f3e (patch)
tree650e2a276ce3b4409968a95e3b11f2e04da3dbf0 /mysql-test/r/mysql.result
parentd55c770ac0e345d00845e4ab9f7e008722f243df (diff)
downloadmariadb-git-71c896c2bf806c93a7685065af2943ab37678f3e.tar.gz
Bug#21042 mysql client segfaults on importing a mysqldump export
- Use strmake, that will both protect the buffer and make sure it's terminated by a zero - Add test case client/mysql.cc: Use strmake instead of strxnmov as that function will make sure the string is terminated by 0 mysql-test/r/mysql.result: Update test result mysql-test/t/mysql.test: Add test case
Diffstat (limited to 'mysql-test/r/mysql.result')
-rw-r--r--mysql-test/r/mysql.result1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/r/mysql.result b/mysql-test/r/mysql.result
index 164ee4d50ac..55ed2a4868b 100644
--- a/mysql-test/r/mysql.result
+++ b/mysql-test/r/mysql.result
@@ -114,4 +114,5 @@ a int(11) YES NULL
b varchar(255) YES NULL
c int(11) YES NULL
drop table t1;
+ERROR 1049 (42000) at line 1: Unknown database 'verylongdatabasenamethatshouldblowthe256byteslongbufferincom_con'
End of 5.0 tests