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

QTimeZone constructed from QByteArray asserts when querying for data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.2.0 RC1
    • 5.2.0 Beta1
    • Core: Date/Time
    • None
    • Qt latest stable, Debian + OpenSuse Linux

    Description

      When creating a QTimeZone from a QByteArray, I'm hitting reliable asserts using the latest stable branch. Looping over QTimeZone::availableTimeZoneIds() and feeding the byte array to the QTimeZone construtor makes it fail to look up data.

      The autotests included with Qt don't exercise this ctor very well. I can reproduce this on two systems.

      Tests that reproduce this problem are attached.

      Attachments

        1. CMakeLists.txt
          0.4 kB
        2. timezones.cpp
          3 kB
        3. timezones.h
          2 kB

        Activity

          People

            johnlayt John Layt
            sebas Sebastian Kügler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: