Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8422

[PATCH] User defined characters cause segmentation fault

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.0, 10.1, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11
    • 10.4, 10.5, 10.6, 10.11
    • Character Sets
    • None

    Description

      add_collation calls cs_copy_data for not compiled character sets.
      This calls init_state_maps, which calls my_mbcharlen, which requires the cset member to be defined.

      --- a/mysys/charset.c
      +++ b/mysys/charset.c
      @@ -153,6 +153,8 @@ static int cs_copy_data(struct charset_info_st *to, CHARSET_INFO *from)
                                                   MY_CS_CTYPE_TABLE_SIZE,
                                                   MYF(MY_WME))))
             goto err;
      +    if (!to->cset)
      +        simple_cs_init_functions(to);
           if (init_state_maps(to))
             goto err;
         }

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              mkoegler Martin Koegler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.