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

INET_ATON silently produces out-of-range garbage for 5+ segment "IPs"

    XMLWordPrintable

Details

    Description

      SELECT INET_ATON('1.2.3.4.5');
      -- MariaDB: 4328719365        <-- garbage value beyond the IPv4 uint32 space (>4294967295)
      -- MySQL:   NULL
      SELECT INET_ATON('1.2.3.4.5.6.7.8');
      -- MariaDB: 72623859790382856 <-- 8-byte concatenated value
      -- MySQL:   NULL
      

      Attachments

        Activity

          People

            bar Alexander Barkov
            chunlingqin chunlingqin
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.