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

Regression: crash if QFileInfo::path() is called for a non-existent drive

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.8.3
    • Core: I/O
    • None
    • Windows 7 + Qt4.8.3 (compiled with Visual Studio x64 Cross Tools Command Prompt (2010))

    Description

      Error can be reproduced with Qt4.8.3 compiled with Visual Studio x64 Cross Tools Command Prompt (2010).
      With Qt4.8.1 compiled with Visual Studio x64 Cross Tools Command Prompt (2010) the use case works ok.

      Use case:

      Call a QFileInfo::path() (http://qt-project.org/doc/qt-4.8/qfileinfo.html#pathx) for a non-existant drive, for example:

      // note: drive 'e' does not exist
      QFileInfo info(QLatin1String("e:test.txt"));
      QString szPath=info.path(); 
      

      --> error: crash occurs.

      SHA fd2eb070128ab6ef6b5c9343a0921f6b5a0bc041 has modified QFileSystemEntry::path() function on
      $QTDIR\src\corelib\io\qfilesystementry.cpp. This has caused the regression.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes