diff options
author | Igor Babaev <igor@askmonty.org> | 2017-10-13 07:24:35 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2017-10-13 07:24:54 -0700 |
commit | 2bab29ebba7a641d43a98737fd1c160971357cd4 (patch) | |
tree | 0f6c87a6b706e4e18847418341681bf52605c699 /sql/item_subselect.cc | |
parent | 8be76a6a907ab858b4fdb5d525548aedfdb4ddf3 (diff) | |
download | mariadb-git-2bab29ebba7a641d43a98737fd1c160971357cd4.tar.gz |
Fixed the bug mdev-13135.
For each SELECT the list sj_nests is built by the
function simplify_joins() when scanning different
join nests. This function may be called several
times for the same join nest. That's why before
adding a new member to sj_nests it is necessary
to check if it's already in the list.
The code of simplify_joins() lacked this check and
as a result it could cause memory overwright for
some queries.
Diffstat (limited to 'sql/item_subselect.cc')
0 files changed, 0 insertions, 0 deletions