diff options
author | pem@mysql.comhem.se <> | 2004-01-26 15:17:35 +0100 |
---|---|---|
committer | pem@mysql.comhem.se <> | 2004-01-26 15:17:35 +0100 |
commit | b2efad935b38bfcf8177837082e3946c60ba8328 (patch) | |
tree | 5265bb3058e731bed360353080461401a5d5c6b1 | |
parent | bfdf9d3cc4371205d44600274686906510d62b8f (diff) | |
download | mariadb-git-b2efad935b38bfcf8177837082e3946c60ba8328.tar.gz |
Check for possible stack overrun in SP execution.
-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; |