diff options
author | Ramil Kalimullin <ramil.kalimullin@oracle.com> | 2012-03-05 22:15:23 +0400 |
---|---|---|
committer | Ramil Kalimullin <ramil.kalimullin@oracle.com> | 2012-03-05 22:15:23 +0400 |
commit | 97c429f65b14335a3322c0c78700582e136607ec (patch) | |
tree | a26adbae94705a3b2b650600c56665b590c91cca /sql/item_subselect.cc | |
parent | 44d88da575abd81bed9ef036c98de2d5b0862d0c (diff) | |
download | mariadb-git-97c429f65b14335a3322c0c78700582e136607ec.tar.gz |
BUG#12537203 - CRASH WHEN SUBSELECTING GLOBAL VARIABLES IN GEOMETRY FUNCTION ARGUMENTS
A defect in the subquery substitution code may lead to a server crash:
setting substitution's name should be followed by setting its length
(to keep them in sync).
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r-- | sql/item_subselect.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc index e9e2e8bacf9..8335ae2ca8d 100644 --- a/sql/item_subselect.cc +++ b/sql/item_subselect.cc @@ -173,6 +173,7 @@ bool Item_subselect::fix_fields(THD *thd_param, Item **ref) (*ref)= substitution; substitution->name= name; + substitution->name_length= name_length; if (have_to_be_excluded) engine->exclude(); substitution= 0; |