diff options
-rw-r--r-- | sql/sp_head.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index 8ba8ea25684..c40be15d21c 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -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; |