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

qdoc3 will segfault due to a null-pointer reference at cppcodeparser.cpp:708 when a class referenced by \class is undefined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.8.1
    • 4.8.0
    • Build tools: Other
    • None
    • I000e3979

    Description

      The diagnostic code at lines 681-686 of cppcodeparser.cpp does not contain a return node; permitting drop-through to the test if(command == COMMAND_CLASS) on line 704. If a \class reference is not defined, this will result in a null-pointer reference on line 707.

      Current cppcodeparser.cpp source in gitorious [lines 663-677] has the block from 704-711 commented out as "doing nothing". If this code is, in fact, not needed, then no further patching will be required. Otherwise a return in the diagnostic block or the addition of a check on the pointer will be required to prevent the segfault.

      Attachments

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

        Activity

          People

            cvandonderen Casper van Donderen
            dee@chattacon.org Dee Holtsclaw
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes