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

[PATCH] Storage plugin can caush segfault in table.cc init_tmp_table_share()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 10.0.1
    • 10.0.4
    • None
    • None

    Description

      (Context: I'm working with Arjen Lentz on opengraph )

      If a plugin passes a NULL tablename to init_tmp_table_share() this causes a segfault.

      If I assume that the core mysqld should be robust, this should be trapped (although not necessarily able to prevent a related segfault elsewhere in the storage plugin)

      I have attached a patch that deals with this, by checking the arguments that are otherwise dereferenced by strlen() before it is used and either ASSERTs in debug build or returning with a warning log.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            andymc73 Andrew McDonnell
            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.