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

signed integer overflow in Item_func_minus

    XMLWordPrintable

    Details

      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

            Assignee:
            bar Alexander Barkov
            Reporter:
            kevg Eugene Kosov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: