Skip to content
Permalink
Browse files
MDEV-25586 : SIGSEGV in my_strcasecmp_utf8mb3
Fixed NULL pointer reference to db.str
  • Loading branch information
Jan Lindström committed May 5, 2021
1 parent 803fa4b commit f673277
Showing 1 changed file with 2 additions and 1 deletion.
@@ -279,7 +279,8 @@ TABLE_CATEGORY get_table_category(const LEX_CSTRING *db,
DBUG_ASSERT(name != NULL);

#ifdef WITH_WSREP
if (my_strcasecmp(system_charset_info, db->str, "mysql") == 0 &&
if (db->str &&
my_strcasecmp(system_charset_info, db->str, "mysql") == 0 &&
my_strcasecmp(system_charset_info, name->str, "wsrep_streaming_log") == 0)
{
return TABLE_CATEGORY_INFORMATION;

0 comments on commit f673277

Please sign in to comment.