diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-09-26 20:18:14 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-09-26 20:18:14 (GMT) |
commit | 40f187cc3c6bf8a0599a47557b0c7c60ad1756c9 (patch) | |
tree | 10a9183991628fc013639280aac3d4d4af20de59 | |
parent | f8ce2e4edbf986248b7382a702d982173c2f41d0 (diff) | |
download | Doxygen-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
-rw-r--r-- | src/doxygen.cpp | 4 |
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(); |