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

QTimeZone constructed from QByteArray asserts when querying for data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.2.0 Beta1
    • Fix Version/s: 5.2.0 RC1
    • Component/s: Core: Date/Time
    • Labels:
      None
    • Environment:
      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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes