1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed LP bug #954262.

This bug in the constructor SEL_IMERGE::SEL_IMERGE could 
cause huge excessive memory requests.
This commit is contained in:
Igor Babaev
2012-03-20 17:03:28 -07:00
parent 91d17a9c20
commit 357331af8a
4 changed files with 409 additions and 1 deletions

View File

@ -1369,7 +1369,7 @@ SEL_IMERGE::SEL_IMERGE(SEL_IMERGE *arg, uint cnt,
for (SEL_TREE **tree = trees, **arg_tree= arg->trees; tree < trees_next;
tree++, arg_tree++)
{
if (!(*tree= new SEL_TREE(*arg_tree, FALSE, param)))
if (!(*tree= new SEL_TREE(*arg_tree, TRUE, param)))
goto mem_err;
}