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: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None
    • Platform/s:
      macOS, Windows

      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:
              thiago Thiago Macieira
              Reporter:
              kshegunov Konstantin Shegunov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes