diff options
author | Dmitry Lenev <Dmitry.Lenev@oracle.com> | 2012-12-10 10:06:37 +0400 |
---|---|---|
committer | Dmitry Lenev <Dmitry.Lenev@oracle.com> | 2012-12-10 10:06:37 +0400 |
commit | 14ba37f76f87cc48cae62eb6bdf3cda294dff78d (patch) | |
tree | 4c9909152473dae191545e9db1c22efb5d90b7e5 /cmake/install_layout.cmake | |
parent | e06cd80415dddc8a52b64aadc2ddc16c994a61b3 (diff) | |
download | mariadb-git-14ba37f76f87cc48cae62eb6bdf3cda294dff78d.tar.gz |
Bug #15954896 "SP, MULTI-TABLE DELETE AND LONG ALIAS".
Using too long table aliases in stored routines might
have caused server crashes.
Code in sp_head::merge_table_list() which is responsible
for collecting information about tables used in stored
routine was not aware of the fact that table alias might
have arbitrary length. I.e. it assumed that table alias
can't be longer than NAME_LEN bytes and allocated buffer
for a key identifying table accordingly.
This patch fixes the issue by ensuring that we use
dynamically allocated buffer for table key when table
alias is too long. By default stack based buffer is used
in which NAME_LEN bytes are reserved for table alias.
Diffstat (limited to 'cmake/install_layout.cmake')
0 files changed, 0 insertions, 0 deletions