After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 588968 - Segmentation fault in scanner.l, "// copy special list items"
Segmentation fault in scanner.l, "// copy special list items"
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
unspecified
Other All
: Normal critical
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2009-07-18 17:23 UTC by Axel Kollmorgen
Modified: 2012-11-18 11:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
action.php from xmlrpc-2.2 exposing the bug (22.40 KB, text/plain)
2009-07-18 17:25 UTC, Axel Kollmorgen
Details
common.php from xmlrpc-2.2 exposing the bug (4.23 KB, text/plain)
2009-07-18 17:27 UTC, Axel Kollmorgen
Details

Description Axel Kollmorgen 2009-07-18 17:23:37 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.
Comment 1 Axel Kollmorgen 2009-07-18 17:25:35 UTC
Created attachment 138685 [details]
action.php from xmlrpc-2.2 exposing the bug
Comment 2 Axel Kollmorgen 2009-07-18 17:27:43 UTC
Created attachment 138687 [details]
common.php from xmlrpc-2.2 exposing the bug
Comment 3 Dimitri van Heesch 2009-07-19 07:45:18 UTC
Confirmed. Should be fixed in the next subversion update.
Comment 4 Axel Kollmorgen 2009-07-21 00:43:34 UTC
will you just add the " && previous", or change something in the general processing?
Comment 5 Dimitri van Heesch 2009-08-20 10:13:22 UTC
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).