diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-02-23 12:48:26 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-02-23 12:48:26 +0100 |
commit | 94bd96e815333955974b53ca42e4480c8754b75c (patch) | |
tree | 0c315bcaeaae5bf2acb6a94e129fe358474a33f5 /vio | |
parent | c88200172e0de06df30d4466f6c9de43a318b7ac (diff) | |
download | mariadb-git-94bd96e815333955974b53ca42e4480c8754b75c.tar.gz |
Bug#43201 : Stack overrun when running sp-error test.
It appears that stack overflow checks for recusrive stored procedure
calls, that run in the normal server, did not work in embedded and were
dummified with preprocessor magic( #ifndef EMBEDDED_SERVER ).
The fix is to remove ifdefs, there is no reason not to run overflow checks
and crash in deeply recursive calls.
Note: Start of the stack (thd->thread_stack variable) in embedded is not
necessarily exact but stil provides the best guess. Unless the caller of
mysql_read_connect() is already deep in the stack, thd->thread_stack
variable should approximate stack start address well.
Diffstat (limited to 'vio')
0 files changed, 0 insertions, 0 deletions