New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect use of uninitialised BriefInfo data (Origin: bugzilla #623733) #3838

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version 1.7.1 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2010-07-07 08:33:22 +0000, Simon wrote:

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.

On 2010-07-07 08:34:41 +0000, Simon wrote:

Created attachment 165407
Fix use of uninitialised BriefInfo

Simple one-liner to ensure a newly-created BriefInfo has an initialised (to -1) line number.

On 2010-07-09 20:39:53 +0000, Dimitri van Heesch wrote:

Thanks for finding this. I'll include your patch in the next subversion update.

On 2010-10-09 08:19:44 +0000, Dimitri van Heesch wrote:

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.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment