summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-09-26 20:18:14 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-09-26 20:18:14 (GMT)
commit40f187cc3c6bf8a0599a47557b0c7c60ad1756c9 (patch)
tree10a9183991628fc013639280aac3d4d4af20de59 /src
parentf8ce2e4edbf986248b7382a702d982173c2f41d0 (diff)
downloadDoxygen-40f187cc3c6bf8a0599a47557b0c7c60ad1756c9.zip
Doxygen-40f187cc3c6bf8a0599a47557b0c7c60ad1756c9.tar.gz
Doxygen-40f187cc3c6bf8a0599a47557b0c7c60ad1756c9.tar.bz2
issue #7277: C++ - Crash using all system memory on using parent constructor with same name
Diffstat (limited to 'src')
-rw-r--r--src/doxygen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 45f07a4..953a5de 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -2125,7 +2125,7 @@ static void findUsingDeclImports(Entry *root)
)
{
//printf("Found using declaration %s inside section %x\n",
- // rootNav->name().data(), rootNav->parent()->section());
+ // root->name.data(), root->parent()->section);
QCString fullName=removeRedundantWhiteSpace(root->parent()->name);
fullName=stripAnonymousNamespaceScope(fullName);
fullName=stripTemplateSpecifiersFromScope(fullName);
@@ -2139,7 +2139,7 @@ static void findUsingDeclImports(Entry *root)
QCString scope=root->name.left(i);
QCString memName=root->name.right(root->name.length()-i-2);
const ClassDef *bcd = getResolvedClass(cd,0,scope); // todo: file in fileScope parameter
- if (bcd)
+ if (bcd && bcd!=cd)
{
//printf("found class %s memName=%s\n",bcd->name().data(),memName.data());
MemberNameInfoSDict *mndict=bcd->memberNameInfoSDict();