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

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.8.0
    • Fix Version/s: 4.8.1
    • Component/s: Build tools: Other
    • Labels:
      None
    • Commits:
      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

            Assignee:
            cvandonderen Casper van Donderen
            Reporter:
            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