Skip to content

Commit 4e2c67a

Browse files
committed
Merge branch '10.9' into 10.10
2 parents d2fdba9 + f692b2b commit 4e2c67a

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

mysql-test/main/sp.result

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8972,6 +8972,18 @@ select @counter;
89728972
5
89738973
drop function f1;
89748974
drop table t1,t2;
8975+
#
8976+
# MDEV-31877: ASAN errors in Exec_time_tracker::get_cycles with innodb slow log verbosity
8977+
#
8978+
CREATE TABLE t1 (a INT, b INT);
8979+
INSERT INTO t1 VALUES (1,2);
8980+
SET @tmp=@@log_slow_verbosity;
8981+
SET SESSION log_slow_verbosity= 'innodb';
8982+
BEGIN NOT ATOMIC DECLARE r ROW TYPE OF t1 DEFAULT (SELECT * FROM t1); SELECT r.a; END $
8983+
r.a
8984+
1
8985+
SET SESSION log_slow_verbosity= @tmp;
8986+
DROP TABLE t1;
89758987
#
89768988
# MDEV-28129: MariaDB UAF issue at lex_end_nops(LEX*)
89778989
#

mysql-test/main/sp.test

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10574,6 +10574,22 @@ select @counter;
1057410574
drop function f1;
1057510575
drop table t1,t2;
1057610576

10577+
--echo #
10578+
--echo # MDEV-31877: ASAN errors in Exec_time_tracker::get_cycles with innodb slow log verbosity
10579+
--echo #
10580+
CREATE TABLE t1 (a INT, b INT);
10581+
INSERT INTO t1 VALUES (1,2);
10582+
SET @tmp=@@log_slow_verbosity;
10583+
SET SESSION log_slow_verbosity= 'innodb';
10584+
--delimiter $
10585+
BEGIN NOT ATOMIC DECLARE r ROW TYPE OF t1 DEFAULT (SELECT * FROM t1); SELECT r.a; END $
10586+
--delimiter ;
10587+
10588+
SET SESSION log_slow_verbosity= @tmp;
10589+
# Cleanup
10590+
DROP TABLE t1;
10591+
10592+
1057710593
--echo #
1057810594
--echo # MDEV-28129: MariaDB UAF issue at lex_end_nops(LEX*)
1057910595
--echo #

sql/sp_head.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3885,7 +3885,6 @@ int
38853885
sp_instr_set::exec_core(THD *thd, uint *nextp)
38863886
{
38873887
int res= get_rcontext(thd)->set_variable(thd, m_offset, &m_value);
3888-
delete_explain_query(thd->lex);
38893888
*nextp = m_ip+1;
38903889
return res;
38913890
}
@@ -3927,7 +3926,6 @@ sp_instr_set_row_field::exec_core(THD *thd, uint *nextp)
39273926
int res= get_rcontext(thd)->set_variable_row_field(thd, m_offset,
39283927
m_field_offset,
39293928
&m_value);
3930-
delete_explain_query(thd->lex);
39313929
*nextp= m_ip + 1;
39323930
return res;
39333931
}
@@ -3975,7 +3973,6 @@ sp_instr_set_row_field_by_name::exec_core(THD *thd, uint *nextp)
39753973
int res= get_rcontext(thd)->set_variable_row_field_by_name(thd, m_offset,
39763974
m_field_name,
39773975
&m_value);
3978-
delete_explain_query(thd->lex);
39793976
*nextp= m_ip + 1;
39803977
return res;
39813978
}

0 commit comments

Comments
 (0)