diff options
author | albert-github <albert.tests@gmail.com> | 2018-11-05 11:07:47 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-11-05 11:07:47 (GMT) |
commit | efc33490c36cb7c21955901ce0abccc343c0c7b3 (patch) | |
tree | 2fc45af19faf44cf990dd8fbad665f6deea5f162 /src/perlmodgen.cpp | |
parent | 9440d7ce0b31749b6bbb13e70e2f7ed501505c7e (diff) | |
download | Doxygen-efc33490c36cb7c21955901ce0abccc343c0c7b3.zip Doxygen-efc33490c36cb7c21955901ce0abccc343c0c7b3.tar.gz Doxygen-efc33490c36cb7c21955901ce0abccc343c0c7b3.tar.bz2 |
issue_6597 SIGSEGV presumably caused by C++ "using" declaration
Crash appears in in the autogen / permod and sqlite3 code generation. In the xml code generation the problem does not appear due to the protection against the NULL pointer.
Added protection on the other places as well
Diffstat (limited to 'src/perlmodgen.cpp')
-rw-r--r-- | src/perlmodgen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index 5b4b6ea..ab55bfa 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -1609,7 +1609,7 @@ void PerlModGenerator::generatePerlModForMember(MemberDef *md,Definition *) m_output.openList("parameters"); ArgumentList *declAl = md->declArgumentList(); ArgumentList *defAl = md->argumentList(); - if (declAl && declAl->count()>0) + if (declAl && defAl && declAl->count()>0) { ArgumentListIterator declAli(*declAl); ArgumentListIterator defAli(*defAl); |