Skip to content

Commit fd31eea

Browse files
author
Arun Kuruvila
committed
Bug #23295288: HANDLE_FATAL_SIGNAL (SIG=11) IN
GET_SERVER_FROM_TABLE_TO_CACHE Description:- Server received SIG11 in the function, "get_server_from_table_to_cache()". Analysis:- Defining a server with a blank name is not handled properly. Fix:- Modified "get_server_from_table_to_cache()" to take care of blank server name.
1 parent ac460e5 commit fd31eea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sql/sql_yacc.yy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -2148,6 +2148,11 @@ server_def:
21482148
ident_or_text
21492149
OPTIONS_SYM '(' server_options_list ')'
21502150
{
2151+
if ($2.length == 0)
2152+
{
2153+
my_error(ER_WRONG_VALUE, MYF(0), "server name", "");
2154+
MYSQL_YYABORT;
2155+
}
21512156
Lex->server_options.server_name= $2.str;
21522157
Lex->server_options.server_name_length= $2.length;
21532158
Lex->server_options.scheme= $6.str;

0 commit comments

Comments
 (0)