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

Missing Null terminator in the definition of mysqldump's --system typelib

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      The definition for the --system command line option's type library is missing a terminating NullS. This, on some platforms (a M series MacOSX in my case) is causing a SIGSEGV when this option is specified to the command line.

      This is the code:

      static const char *opt_system_type_values[]=
        {"all", "users", "plugins",  "udfs", "servers", "stats", "timezones"};
      static TYPELIB opt_system_types=
      {
        array_elements(opt_system_type_values), "system dump options",
        opt_system_type_values, NULL
      }; 
      

      Attachments

        Activity

          People

            gkodinov Georgi Kodinov
            gkodinov Georgi Kodinov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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