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

conversion of LONGLONG_MAX to double and back to long long results in LONGLONG_MIN

    XMLWordPrintable

Details

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

    Description

      Here are funny casts https://godbolt.org/z/K6Rvnc

      It could happen here https://github.com/mariadb/server/blob/10.1/sql/sql_time.cc#L406 and here https://github.com/mariadb/server/blob/10.1/include/my_time.h#L122

      I wasn't able to write a test and found these bugs by reading the code.

      Attachments

        Activity

          People

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