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

QAbstractFileEngine::extension crashes on the default parameters

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Invalid
    • P1: Critical
    • None
    • Core: I/O
    • 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/qabstractfileengine.html#extension):

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

      But the following code crashes:

      #include <QtCore>
      int main(int argc, char *argv[ ])
      {
      QString fileName("file");
      QAbstractFileEngine* qabstractfileengine = QAbstractFileEngine::create(fileName);
      //target interface call
      qabstractfileengine->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

            biochimia João Abecasis
            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