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

Invalid year zero date asserts in QDateTimeParser::parse()

    XMLWordPrintable

Details

    • Windows
    • 3
    • 79a1986e8 (dev), ecae579d0 (6.9), 2c03aa105 (6.8), 7d8898470 (6.8)
    • Foundation Sprint 128, Foundation Sprint 129

    Description

      When building in Debug config with MSVC2022, calling QDateTime::fromString("0000-01-01T00:00:00.000", "yyyy-MM-ddThh:mm:ss.zzz") triggers the following assert in QDateTimeParser::parse():

      ASSERT: "scan.value.isValid() || scan.state != Acceptable" in file C:\Users\qt\work\qt\qtbase\src\corelib\time\qdatetimeparser.cpp, line 1626
      

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            lysandra.sola Lysandra Sola
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes