1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-10775 System table in InnoDB format allowed in MariaDB could lead to crash

when opening a system table for a SELECT-like read, pretend
(for the sake of engines) it's SQLCOM_SELECT
This commit is contained in:
Sergei Golubchik
2016-09-23 20:27:58 +02:00
parent e56a53920b
commit 677c44f0c3
3 changed files with 21 additions and 0 deletions

View File

@@ -9223,6 +9223,7 @@ open_system_tables_for_read(THD *thd, TABLE_LIST *table_list,
*/
lex->reset_n_backup_query_tables_list(&query_tables_list_backup);
thd->reset_n_backup_open_tables_state(backup);
thd->lex->sql_command= SQLCOM_SELECT;
if (open_and_lock_tables(thd, table_list, FALSE,
MYSQL_OPEN_IGNORE_FLUSH |