File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,15 @@ SELECT 'bug' as '' FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb'
65
65
--error 1
66
66
--exec $MYSQLD_BOOTSTRAP_CMD --myisam_recover_options=NONE
67
67
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
+
68
77
--echo End of 5.5 tests
69
78
70
79
--source include/not_windows_embedded.inc
Original file line number Diff line number Diff line change @@ -9216,8 +9216,7 @@ my_bool mysql_rm_tmp_tables(void)
9216
9216
{
9217
9217
file=dirp->dir_entry +idx;
9218
9218
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))
9221
9220
{
9222
9221
char *ext= fn_ext (file->name );
9223
9222
uint ext_len= strlen (ext);
You can’t perform that action at this time.
0 commit comments