GNOME Bugzilla – Bug 623733
Incorrect use of uninitialised BriefInfo data
Last modified: 2010-10-09 08:19:44 UTC
I noticed an occasional segmentation fault with doxygen-1.7.1 when run on our doc sources, so I ran it through valgrind. There was just a single error in src/definition.cpp:472 where "briefLine" was be checked even though it was uninitialized. Running valgrind with "--track-origins=yes" reveals this to have been allocation by the same function at line 469. A BriefInfo object is created but it's line number isn't set. Subsequently ClassDef::addMembersToTemplateInstance evaluates briefLine() using uninitialised data.
Created attachment 165407 [details] [review] Fix use of uninitialised BriefInfo Simple one-liner to ensure a newly-created BriefInfo has an initialised (to -1) line number.
Thanks for finding this. I'll include your patch in the next subversion update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.7.2. 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.