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

Some QFileSystemMetaData members are not initialized when using iterators

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.15
    • Core: I/O

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes