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 698007 - segfault in searchInputFiles if INPUT contains zero-length string
segfault in searchInputFiles if INPUT contains zero-length string
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.3.1
Other Linux
: High major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2013-04-14 15:46 UTC by Ed Catmur
Modified: 2013-05-19 12:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-Fix-crash-if-zero-length-string-in-INPUT.patch (647 bytes, patch)
2013-04-14 15:51 UTC, Ed Catmur
none Details | Review
https://bugzilla.gnome.org/show_bug.cgi?id=698007 (723 bytes, patch)
2013-04-14 16:02 UTC, Ed Catmur
none Details | Review

Description Ed Catmur 2013-04-14 15:46:50 UTC
Searching for include files...
Searching for example files...
Searching for images...
Searching for dot files...
Searching for msc files...
Searching for files to exclude
Searching for files to process...

Program received signal SIGSEGV, Segmentation fault.
searchInputFiles (inputFiles=...) at doxygen.cpp:10067
10067	    if (path.at(l-1)=='\\' || path.at(l-1)=='/') path=path.left(l-1);
(gdb) bt full
  • #0 searchInputFiles
    at doxygen.cpp line 10067
  • #1 parseInput
    at doxygen.cpp line 10264
  • #2 main
    at main.cpp line 37

Patch to follow.
Comment 1 Ed Catmur 2013-04-14 15:51:25 UTC
Created attachment 241506 [details] [review]
0001-Fix-crash-if-zero-length-string-in-INPUT.patch
Comment 3 Kevin McBride 2013-04-14 16:09:15 UTC
Thank you for taking the time to report this bug.

Although Dimitri will probably include your patch, could you attach a sample file w. doxyfile in a tar or zip so that bug triagers like myself can confirm this bug?

Because of this question, I am leaving the bug status as "Unconfirmed."
Comment 4 Ed Catmur 2013-04-14 23:53:13 UTC
Sorry, discovered the bug was triggered by stat failure running 32-bit userland on an xfs filesystem with 64-bit inode numbers. I'm looking to see if it may be possible to trigger the bug under more normal circumstances.
Comment 5 Dimitri van Heesch 2013-04-19 18:04:55 UTC
Confirmed. Should be fixed in the next subversion update.
Comment 6 Dimitri van Heesch 2013-05-19 12:35:37 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.4. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.