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

Possible overflow in QDeadlineTimer if deadline is specified in milliseconds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.11
    • Fix Version/s: 5.12.4
    • Component/s: Core: Other
    • Labels:
      None
    • Platform/s:
      macOS, Windows
    • Commits:
      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

            Assignee:
            kshegunov Konstantin Shegunov
            Reporter:
            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