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

QDateTime constructor doesn't guard against data races in environment variables

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.13.0 Alpha 1
    • 5.9
    • Core: Date/Time
    • None
    • 6c543879a31d7d13a6b87e6332f6913f2f89f5e6 (qt/qtbase/dev)

    Description

      When constructing a QDateTime object with Qt::TimeSpec Qt::LocalTime it calls mktime somewhere down the line. This function will according to spec call tzset and subsequently read the TZ environment variable. 

      Therefore the call to mktime (and probably some other libc-functions) should also be guarded with the same mutex guarding qgetenv/qsetenv. 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Eddy Edward Welbourne
            richardo Richard Öhlinger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes