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

Buffer overrun in find_uniq_filename

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.38, 10.0.11, 10.1.0
    • 5.5.39, 10.0.12, 10.1.0
    • None
    • None

    Description

      To reproduce this bug compile MariaDB with ASAN:
      cmake -DWITH_ASAN=ON -DCMAKE_BUILD_TYPE=Debug -DMYSQL_MAINTAINER_MODE=ON

      mtr test following.

      find_uniq_filename.test

      let $i= 918;
      while ($i > 99)
      {
        write_file $MYSQLTEST_VARDIR/mysqld.1/data/test/a_39_bytes_long_file_name_123456789.$i;
        EOF
        dec $i;
      }
      flush logs;

      find_uniq_filename.opt

      --log-bin=$MYSQLTEST_VARDIR/mysqld.1/data/test/longbinlog012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901

      Originally fixed in WebScaleSQL: https://github.com/webscalesql/webscalesql-5.6/commit/bce9eddc1da87beab17c60d7eb7379841a3d45af.

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              svoj Sergey Vojtovich
              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.