summaryrefslogtreecommitdiff
path: root/sql/sql_string.cc
diff options
context:
space:
mode:
authorGleb Shchepa <gshchepa@mysql.com>2009-06-08 01:40:53 +0500
committerGleb Shchepa <gshchepa@mysql.com>2009-06-08 01:40:53 +0500
commited7f0f3023041cc1749077ad45cd5a8bb8fa784e (patch)
tree92214049ec672ebd7f6209df85e8d0458afad85e /sql/sql_string.cc
parentd7d61f59ddc83b8d60f47cd62cd3778ba8d4f8c2 (diff)
downloadmariadb-git-ed7f0f3023041cc1749077ad45cd5a8bb8fa784e.tar.gz
Bug #44886: SIGSEGV in test_if_skip_sort_order() -
uninitialized variable used as subscript Grouping select from a "constant" InnoDB table (a table of a single row) joined with other tables caused a crash. mysql-test/r/innodb_mysql.result: Added test case for bug bug #44886. mysql-test/t/innodb_mysql.test: Added test case for bug bug #44886. sql/sql_select.cc: Bug #44886: SIGSEGV in test_if_skip_sort_order() - uninitialized variable used as subscript 1. The test_if_order_by_key function returned unitialized used_key_parts parameter in case of a "constant" InnoDB table. Calling function uses this parameter values as an array index, thus sometimes it caused a crash. The test_if_order_by_key function has been modified to set used_key_parts to 0 (no need for ordering). 2. The test_if_skip_sort_order function has been modified to accept zero used_key_parts value and to prevent an array access by negative index.
Diffstat (limited to 'sql/sql_string.cc')
0 files changed, 0 insertions, 0 deletions