Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6583 40 potential problems in the libQtCore-4.6.0
  3. QTBUG-6814

QFSFileEngine::extension crashes on the default parameters

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Other
    • None
    • x86, OpenSuse-11.1, qt-4.6.0

    Description

      According to the documentation interface QAbstractFileEngine::extension have null default values for the second and the third parameters (http://qt.nokia.com/doc/4.6/qfsfileengine.html#extension):

      bool QFSFileEngine::extension ( Extension extension, const ExtensionOption * option = 0, ExtensionReturn * output = 0 )

      But the following code crashes:

      #include <QtCore>
      int main(int argc, char *argv[ ])
      {
      QString file("file");
      QFSFileEngine* qfsfileengine = new QFSFileEngine(file);
      qfsfileengine->extension(QAbstractFileEngine::MapExtension);
      return 0;
      }

      Attachments

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

        Activity

          People

            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            andrey86 Andrey Ponomarenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes