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

Some QFileSystemMetaData members are not initialized when using iterators

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.15
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:

      Description

      In QFileEngineIterator::advance implementations, the accessTime_ member of the QFileSystemMetaData out-parameter might remain uninitialized.

      Either the QFileSystemMetaData default constructor should initialize all members, or the platform specific implementation of advance should zero out members that are not populated.

      See Coverity issues 11399 and 11419.

      A previous attempt to address the issue has been abandoned:

      Given the comments, and the proposed solutions, zeroing out the accessTime_ member in the Windows implementation of QFileSystemIterator::advance might be sufficient.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jimis Dimitrios Apostolou
              Reporter:
              vhilshei Volker Hilsheimer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes