Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f8af7c6f
Commit
f8af7c6f
authored
Aug 10, 2023
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.11' into 11.0
parents
4821ce81
0edb80f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
mysql-test/main/sp.result
mysql-test/main/sp.result
+12
-0
mysql-test/main/sp.test
mysql-test/main/sp.test
+16
-0
sql/sp_head.cc
sql/sp_head.cc
+0
-3
No files found.
mysql-test/main/sp.result
View file @
f8af7c6f
...
@@ -8965,6 +8965,18 @@ select @counter;
...
@@ -8965,6 +8965,18 @@ select @counter;
5
5
drop function f1;
drop function f1;
drop table t1,t2;
drop table t1,t2;
#
# MDEV-31877: ASAN errors in Exec_time_tracker::get_cycles with innodb slow log verbosity
#
CREATE TABLE t1 (a INT, b INT);
INSERT INTO t1 VALUES (1,2);
SET @tmp=@@log_slow_verbosity;
SET SESSION log_slow_verbosity= 'innodb';
BEGIN NOT ATOMIC DECLARE r ROW TYPE OF t1 DEFAULT (SELECT * FROM t1); SELECT r.a; END $
r.a
1
SET SESSION log_slow_verbosity= @tmp;
DROP TABLE t1;
#
#
# MDEV-28129: MariaDB UAF issue at lex_end_nops(LEX*)
# MDEV-28129: MariaDB UAF issue at lex_end_nops(LEX*)
#
#
...
...
mysql-test/main/sp.test
View file @
f8af7c6f
...
@@ -10574,6 +10574,22 @@ select @counter;
...
@@ -10574,6 +10574,22 @@ select @counter;
drop
function
f1
;
drop
function
f1
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
--
echo
#
--
echo
# MDEV-31877: ASAN errors in Exec_time_tracker::get_cycles with innodb slow log verbosity
--
echo
#
CREATE
TABLE
t1
(
a
INT
,
b
INT
);
INSERT
INTO
t1
VALUES
(
1
,
2
);
SET
@
tmp
=@@
log_slow_verbosity
;
SET
SESSION
log_slow_verbosity
=
'innodb'
;
--
delimiter
$
BEGIN
NOT
ATOMIC
DECLARE
r
ROW
TYPE
OF
t1
DEFAULT
(
SELECT
*
FROM
t1
);
SELECT
r
.
a
;
END
$
--
delimiter
;
SET
SESSION
log_slow_verbosity
=
@
tmp
;
# Cleanup
DROP
TABLE
t1
;
--
echo
#
--
echo
#
--
echo
# MDEV-28129: MariaDB UAF issue at lex_end_nops(LEX*)
--
echo
# MDEV-28129: MariaDB UAF issue at lex_end_nops(LEX*)
--
echo
#
--
echo
#
...
...
sql/sp_head.cc
View file @
f8af7c6f
...
@@ -3885,7 +3885,6 @@ int
...
@@ -3885,7 +3885,6 @@ int
sp_instr_set
::
exec_core
(
THD
*
thd
,
uint
*
nextp
)
sp_instr_set
::
exec_core
(
THD
*
thd
,
uint
*
nextp
)
{
{
int
res
=
get_rcontext
(
thd
)
->
set_variable
(
thd
,
m_offset
,
&
m_value
);
int
res
=
get_rcontext
(
thd
)
->
set_variable
(
thd
,
m_offset
,
&
m_value
);
delete_explain_query
(
thd
->
lex
);
*
nextp
=
m_ip
+
1
;
*
nextp
=
m_ip
+
1
;
return
res
;
return
res
;
}
}
...
@@ -3927,7 +3926,6 @@ sp_instr_set_row_field::exec_core(THD *thd, uint *nextp)
...
@@ -3927,7 +3926,6 @@ sp_instr_set_row_field::exec_core(THD *thd, uint *nextp)
int
res
=
get_rcontext
(
thd
)
->
set_variable_row_field
(
thd
,
m_offset
,
int
res
=
get_rcontext
(
thd
)
->
set_variable_row_field
(
thd
,
m_offset
,
m_field_offset
,
m_field_offset
,
&
m_value
);
&
m_value
);
delete_explain_query
(
thd
->
lex
);
*
nextp
=
m_ip
+
1
;
*
nextp
=
m_ip
+
1
;
return
res
;
return
res
;
}
}
...
@@ -3975,7 +3973,6 @@ sp_instr_set_row_field_by_name::exec_core(THD *thd, uint *nextp)
...
@@ -3975,7 +3973,6 @@ sp_instr_set_row_field_by_name::exec_core(THD *thd, uint *nextp)
int
res
=
get_rcontext
(
thd
)
->
set_variable_row_field_by_name
(
thd
,
m_offset
,
int
res
=
get_rcontext
(
thd
)
->
set_variable_row_field_by_name
(
thd
,
m_offset
,
m_field_name
,
m_field_name
,
&
m_value
);
&
m_value
);
delete_explain_query
(
thd
->
lex
);
*
nextp
=
m_ip
+
1
;
*
nextp
=
m_ip
+
1
;
return
res
;
return
res
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment