Commit b2efad93 authored by pem@mysql.comhem.se's avatar pem@mysql.comhem.se

Check for possible stack overrun in SP execution.

parent bfdf9d3c
......@@ -277,6 +277,12 @@ sp_head::execute(THD *thd)
int ret= 0;
uint ip= 0;
#ifndef EMBEDDED_LIBRARY
if (check_stack_overrun(thd, olddbptr))
{
DBUG_RETURN(-1);
}
#endif
if (olddbptr)
{
uint i= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment