Commit 7e95a257 authored by unknown's avatar unknown

Check for possible stack overrun in SP execution.


sql/sp_head.cc:
  Check for possible stack overrun, in an attempt to
  handle deep recursion more gracefully.
  (Not 100% this will always helt though, but it's better than
   nothing.)
parent 219f51b4
...@@ -277,6 +277,12 @@ sp_head::execute(THD *thd) ...@@ -277,6 +277,12 @@ sp_head::execute(THD *thd)
int ret= 0; int ret= 0;
uint ip= 0; uint ip= 0;
#ifndef EMBEDDED_LIBRARY
if (check_stack_overrun(thd, olddbptr))
{
DBUG_RETURN(-1);
}
#endif
if (olddbptr) if (olddbptr)
{ {
uint i= 0; 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