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

signed integer overflow in Item_func_minus

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
    • 10.4(EOL)
    • Data types
    • None

    Description

      Both queries fails in two places with -ftrapv:

      select -9223372036854775808 - 1;
      select 1-convert(1, unsigned int);
      

      I think computations should be performed in ulonglong instead of longlong.

      Attachments

        Activity

          People

            bar Alexander Barkov
            kevg Eugene Kosov (Inactive)
            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.