Skip to content

Commit b85aa20

Browse files
committed
Merge branch '5.5' into 10.1
2 parents 8cda7ab + aba9115 commit b85aa20

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

mysql-test/t/bootstrap.test

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ SELECT 'bug' as '' FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb'
6565
--error 1
6666
--exec $MYSQLD_BOOTSTRAP_CMD --myisam_recover_options=NONE
6767

68+
#
69+
# MDEV-19349 mysql_install_db: segfault at tmp_file_prefix check
70+
#
71+
--write_file $MYSQLTEST_VARDIR/tmp/1
72+
use test;
73+
EOF
74+
--exec $MYSQLD_BOOTSTRAP_CMD < $MYSQLTEST_VARDIR/tmp/1 >> $MYSQLTEST_VARDIR/tmp/bootstrap.log 2>&1
75+
--remove_file $MYSQLTEST_VARDIR/tmp/1
76+
6877
--echo End of 5.5 tests
6978

7079
--source include/not_windows_embedded.inc

sql/sql_base.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9216,8 +9216,7 @@ my_bool mysql_rm_tmp_tables(void)
92169216
{
92179217
file=dirp->dir_entry+idx;
92189218

9219-
if (!memcmp(file->name, tmp_file_prefix,
9220-
tmp_file_prefix_length))
9219+
if (!strncmp(file->name, tmp_file_prefix, tmp_file_prefix_length))
92219220
{
92229221
char *ext= fn_ext(file->name);
92239222
uint ext_len= strlen(ext);

0 commit comments

Comments
 (0)