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

Invalid code in fts_savepoint_release() in InnoDB

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.1
    • 10.0.2
    • None
    • None

    Description

      There's a clearly incorrect code in storage/innobase/fts/fts0fts.cc in MariaDB 10.0.1 tarball. On line 5348 it has:

      			/* Swap the entries. */
      			memcpy(&temp, last, sizeof(temp));
      			memcpy(last, prev, sizeof(*last));
      			memcpy(prev, &temp, sizeof(prev));

      The last statement doesn't copy full fts_savepoint_t struct from temp to *prev, because the last parameter should be sizeof(*prev).

      Attachments

        Activity

          People

            serg Sergei Golubchik
            pivanof Pavel Ivanov
            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.