Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69750

Possible overflow in QDeadlineTimer if deadline is specified in milliseconds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.4
    • 5.11
    • Core: Other
    • None
    • macOS, Windows
    • c6bee8e4b2c48775247c67ef8e7569f623655c61

    Description

      On Windows and MacOS the deadline timer keeps the timestamp in nanoseconds, so if the API that takes milliseconds arguments is used with large values, the internal integers can overflow leading to unexpected results.

      Related change for the Linux problem (and discussion):
      https://codereview.qt-project.org/#/c/235717/

      Attachments

        For Gerrit Dashboard: QTBUG-69750
        # Subject Branch Project Status CR V

        Activity

          People

            kshegunov Konstantin Shegunov
            kshegunov Konstantin Shegunov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes