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

Some QFileSystemMetaData members are not initialized when using iterators

    XMLWordPrintable

Details

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

    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

              jimis Dimitrios Apostolou
              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