GNOME Bugzilla – Bug 632311
@verbatim@endverbatim crashes doxygen
Last modified: 2012-11-18 11:12:09 UTC
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
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.
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.