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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8ed5fde3
Commit
8ed5fde3
authored
Sep 27, 2015
by
Monty
Committed by
Sergei Golubchik
Oct 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug in JOIN_TAB::cleanup() that caused freed memory to be accessed
parent
4193fa7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sql/sql_select.cc
sql/sql_select.cc
+4
-2
No files found.
sql/sql_select.cc
View file @
8ed5fde3
...
@@ -11472,14 +11472,16 @@ void JOIN_TAB::cleanup()
...
@@ -11472,14 +11472,16 @@ void JOIN_TAB::cleanup()
}
}
else
else
{
{
TABLE_LIST
*
tmp
=
table
->
pos_in_table_list
;
end_read_record
(
&
read_record
);
end_read_record
(
&
read_record
);
t
able
->
pos_in_table_list
->
jtbm_subselect
->
cleanup
();
t
mp
->
jtbm_subselect
->
cleanup
();
/*
/*
The above call freed the materializedd temptable. Set it to NULL so
The above call freed the materializedd temptable. Set it to NULL so
that we don't attempt to touch it if JOIN_TAB::cleanup() is invoked
that we don't attempt to touch it if JOIN_TAB::cleanup() is invoked
multiple times (it may be)
multiple times (it may be)
*/
*/
table
=
NULL
;
tmp
->
table
=
NULL
;
table
=
NULL
;
}
}
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
...
...
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