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

Investigate the QXmlStream reports from the report

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Invalid
    • Not Evaluated
    • None
    • None

    Description

      The two testcases from the report are:

      #include <QtCore>
        int main(int argc, char *argv[])
        {
            QXmlStreamReader* qxmlstreamreader = new QXmlStreamReader("data");
            QXmlStreamEntityResolver* qxmlstreamentityresolver = qxmlstreamreader->entityResolver();
            QString publicId("publicId");
            QString systemId("systemId");
            //target interface call
            qxmlstreamentityresolver->resolveEntity(publicId, systemId);
            return 0;
        }
      
      #include <QtCore>
        int main(int argc, char *argv[])
        {
            QXmlStreamReader* qxmlstreamreader = new QXmlStreamReader("data");
            QXmlStreamEntityResolver* qxmlstreamentityresolver = qxmlstreamreader->entityResolver();
            QString name("name");
            //target interface call
            qxmlstreamentityresolver->resolveUndeclaredEntity(name);
            return 0;
        }
      

      Both result in segmentation fault. I don't know the API to judge if there's a misuse here.

      Attachments

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

        Activity

          People

            fenglich Frans Englich (closed Nokia identity)
            tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes