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

@verbatim@endverbatim crashes doxygen (Origin: bugzilla #632311) #3980

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 unspecified on platform Other
Assigned to: Dimitri van Heesch

On 2010-10-16 19:34:28 +0000, Murray Cumming wrote:

A doxygen comment like this will crash doxygen, with at least 1.7.1, 1.7.2 and the svn version. It didn't crash in previous versions.

/** @verbatim@endverbatim

valgrind shows that it happens here:

Generating docs for compound Gnome::Gda::SqlParser...
==25832== Invalid read of size 1
==25832== at 0x8278112: stripEmptyLines(char const*) (doctokenizer.l:266)
==25832== by 0x8279958: doctokenizerYYlex() (doctokenizer.l:609)
==25832== by 0x82660DF: DocPara::handleCommand(QCString const&) (docparser.cpp:4905)
==25832== by 0x8268CE5: DocPara::parse() (docparser.cpp:5884)
==25832== by 0x82625E1: DocAutoListItem::parse() (docparser.cpp:3912)
==25832== by 0x82626CD: DocAutoList::parse() (docparser.cpp:3932)
==25832== by 0x82688FD: DocPara::parse() (docparser.cpp:5783)
==25832== by 0x8269D0D: DocRoot::parse() (docparser.cpp:6242)
==25832== by 0x826AC31: validatingParseDoc(char const*, int, Definition*, MemberDef*, char const*, bool, bool, char const*, bool, bool) (docparser.cpp:6453)
==25832== by 0x8181F7F: OutputList::parseDoc(char const*, int, Definition*, MemberDef*, QCString const&, bool, bool, char const*, bool, bool) (outputlist.cpp:161)
==25832== by 0x8211BFB: ClassDef::writeDetailedDescription(OutputList&, QCString const&, bool, QCString const&) (classdef.cpp:924)
==25832== by 0x82149F0: ClassDef::writeDocumentation(OutputList&) (classdef.cpp:1545)
==25832== by 0x8068818: generateNamespaceDocs() (doxygen.cpp:8269)
==25832== by 0x807037F: generateOutput() (doxygen.cpp:10453)
==25832== by 0x804A2F7: main (main.cpp:38)
==25832== Address 0x0 is not stack'd, malloc'd or (recently) free'd

On 2010-10-16 21:05:03 +0000, Dimitri van Heesch wrote:

I didn't get this crash, not did valgrind show any issues, but I see that stripEmptyLines does not properly handle the case were s is a null pointer, so I'll fix this.

On 2011-01-03 19:01:45 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.3. 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