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

Master & Relay Log info files read 2^31 and above incorrectly

    XMLWordPrintable

Details

    • Can result in unexpected behaviour

    Description

      @@master_info_file and @@relay_log_info_file read integers (including IDs in lists) with atoi, which can only read signed 32-bits.
      However, the integer fields in those files are unsigned fields, which has a higher maximum. Some of them 64-bit, too.

      To demonstrate, the attached MTR test shows 2147483648 (0x8000'0000) gets reloaded as 18446744071562067968 (0xffff'ffff'8000'0000).
      P.S. Nevermind the LP64 requirement in that test.

      Attachments

        Issue Links

          Activity

            People

              ParadoxV5 Jimmy Hú
              ParadoxV5 Jimmy Hú
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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