GNOME Bugzilla – Bug 588968
Segmentation fault in scanner.l, "// copy special list items"
Last modified: 2012-11-18 11:13:06 UTC
the attached files cause doxygen to stop with a segfault. the error happens in this part of scanner.l: if (current->sli) // copy special list items { QListIterator<ListItemInfo> li(*current->sli); ListItemInfo *lii; for (li.toFirst();(lii=li.current());++li) { previous->addSpecialListItem(lii->type,lii->itemId); // <<<< HERE } delete current->sli; current->sli = 0; } problem: 'previous' is undefined (in the special case of these files). quickfix: - if (current->sli) // copy special list items + if (current->sli && previous) // copy special list items proper fix: no idea, because i'm not so familiar with doxygen, the scanner, etc. one hint that this needs some more work is the section just above this code, which is '#if 0' outcommented. would be nice if someone with more insight could look over this.
Created attachment 138685 [details] action.php from xmlrpc-2.2 exposing the bug
Created attachment 138687 [details] common.php from xmlrpc-2.2 exposing the bug
Confirmed. Should be fixed in the next subversion update.
will you just add the " && previous", or change something in the general processing?
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.6.0. Please verify if this is indeed the case and reopen the bug if you think it is not fixed (include any additional information that you think can be relevant).