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

INTEGER OVERFLOW in JSON related functions

    XMLWordPrintable

Details

    Description

      Hi,

      I found that the INTEGER overflow occurs in JSON related functions without any warning:

      SELECT JSON_VALID('1e9999999999999999999999'); -- 1
      SELECT JSON_NORMALIZE('1e9999999999999999999999'); -- 1.0E9223372036854775807
      SELECT JSON_NORMALIZE('1e8888888888888888888888'); -- 1.0E9223372036854775807
      SELECT JSON_EQUALS('1e9999999999999999999999','1e8888888888888888888888'); -- 1
      SHOW WARNINGS; -- empty
      

      Attachments

        Activity

          People

            rucha174 Rucha Deodhar
            ChiZhang Chi Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.