From 10fed1aca0096acb135c2065233e84d61b00b9cf Mon Sep 17 00:00:00 2001 From: Mikael Ronstrom Date: Wed, 28 Oct 2009 01:11:17 +0100 Subject: BUG#48165, needed to introduce length restrictions on partitioning fields to ensure that no stack overruns occur --- sql/sql_show.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_show.cc') diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 46a91f7a905..77c7a3c27f3 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -4846,7 +4846,7 @@ get_partition_column_description(partition_info *part_info, tmp_str.append("NULL"); else { - char buffer[3 * MAX_STR_SIZE_PF + 10]; + char buffer[MAX_KEY_LENGTH]; String str(buffer, sizeof(buffer), &my_charset_bin); Item *item= col_val->item_expression; -- cgit v1.2.1