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

Possible null pointer dereference

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.6.1
    • 5.5.0, 5.6.0 Beta
    • Build tools: qdoc
    • None
    • ca36fb97f9a2241b12d1f6a697970a0803232539

      In file qttools.git/tree/src/qdoc/htmlgenerator.cpp at line 3225 there is if-statement:

      if (!relative || !relative->isCollectionNode()) {
                  relative->doc().location().warning(tr("\\generatelist {%1} is only allowed in \\group, "
                                                        "\\module, \\qmlmodule, and \\jsmodule comments.").arg(selector));
                  return;
              }
      

      (http://code.qt.io/cgit/qt/qttools.git/tree/src/qdoc/htmlgenerator.cpp?h=58d1304edb82a0a17ee39d259e56b930ca35ffcc#n3225)

      It seems, it is null pointer dereference (when relative is NULL).

      The possible defect found by static analyzer AppChecker.

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

            gbk Martin Smith (Qt)
            appchecker AppChecker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes