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

toTimeZone() is segfaulting when called with an invalid time zone

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.14.1, 5.15.0 Alpha
    • 5.14.0 Beta3
    • Core: Date/Time
    • None
    • Linux
    • All
    • 49063c34d6314c59ec9529550e0639832796372e (qt/qtbase/5.14)

    Description

      Such call is segfaulting `.toTimeZone(QTimeZone())`. Indeed, looking at the code, it is making the date time invalid in `::setTimeZone()`, but it is calling `::fromMSecsSinceEpoch()` anyway, where line 4166, it is acessing internal of the `m_timeZone` object without checking that this internal exists.

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            dcaliste Damien Caliste
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes