1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

BUG#18037: Fix stack corruption in THD::rollback_item_tree_changes().

Stored procedure execution sometimes placed the address of auto variables
in the list of Item changes to undo in THD::rollback_item_tree_changes().
This could cause stack corruption.
This commit is contained in:
knielsen@mysql.com
2006-05-15 12:01:55 +02:00
parent 9e460e7a25
commit 6703a50f7d
5 changed files with 28 additions and 25 deletions

View File

@ -1877,7 +1877,7 @@ bool select_dumpvar::send_data(List<Item> &items)
if ((yy=var_li++))
{
if (thd->spcont->set_variable(current_thd, yy->get_var_idx(),
*it.ref()))
it.ref()))
DBUG_RETURN(1);
}
}