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

MYSQL57_GENERATED_FIELD: The code in TABLE_SHARE::init_from_binary_frm_image() is not safe

    XMLWordPrintable

Details

    Description

      This problem is similar to MDEV-15834, but for a 10.2 specific code in the code branch for MYSQL57_GENERATED_FIELD:

      vcol_info_length= uint2korr(vcol_screen_pos + 1);
      ...
      DBUG_ASSERT(vcol_info_length);
      ...
      vcol_screen_pos+= vcol_info_length + MYSQL57_GCOL_HEADER_SIZE;
      

      In case of a broke FRM file, this can crash in the debug build or behave unpredictably in a release build.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              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.