Package: doxygen
Version: 1.4.6-1
Tags: patch
Hi,
A coworker of mine discovered that doxygen segfaults on our company
source tree. The problem is already fixed in upstream's CVS, and is
documented here:
http://sourceforge.net/mailarchive/message.php?msg_id=14377995
I've attached the patch from that posting. Applying the patch to
locally built doxygen packages stops it from segfaulting.
--- doxygen-1.4.6.orig/src/doxygen.cpp
+++ doxygen-1.4.6/src/doxygen.cpp
@@ -1912,7 +1912,7 @@
// variable already in the scope
{
if (! // not a php array
- (getLanguageFromFileName(md->getFileDef()->name())==SrcLangExt_PHP) &&
+ (md->getFileDef() && getLanguageFromFileName(md->getFileDef()->name())==SrcLangExt_PHP) &&
(md->argsString()!=root->args && root->args.find('[')!=-1)
)
// not a php array variable