summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2006-01-02 21:19:55 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2006-01-02 21:19:55 (GMT)
commit01b177fea794aef5dcffe4a05d08a6d17184bcf3 (patch)
treeaaaafa7e7f9b22a7659a75f82096d3dd085a98f5 /src
parent8b7fa1d1b6121714ffb1b11fc793213effebe1e8 (diff)
downloadDoxygen-01b177fea794aef5dcffe4a05d08a6d17184bcf3.zip
Doxygen-01b177fea794aef5dcffe4a05d08a6d17184bcf3.tar.gz
Doxygen-01b177fea794aef5dcffe4a05d08a6d17184bcf3.tar.bz2
Fix for potential memory corruption. Note that this is now included in
release 1.4.6 if downloaded after 01-01-2006.
Diffstat (limited to 'src')
-rw-r--r--src/util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 78a0c05..bcea278 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -1,6 +1,6 @@
/*****************************************************************************
*
- *
+ * $Id$
*
* Copyright (C) 1997-2005 by Dimitri van Heesch.
*
@@ -811,7 +811,7 @@ int isAccessibleFrom(Definition *scope,FileDef *fileScope,Definition *item)
//fprintf(stderr,"<isAccesibleFrom(scope=%s,item=%s itemScope=%s)\n",
// scope->name().data(),item->name().data(),item->getOuterScope()->name().data());
- QCString key;
+ QCString key(40);
key.sprintf("%p:%p:%p",scope,fileScope,item);
static QDict<void> visitedDict;
if (visitedDict.find(key)) return -1; // already looked at this
@@ -889,7 +889,7 @@ int isAccessibleFromWithExpScope(Definition *scope,FileDef *fileScope,
return isAccessibleFrom(scope,fileScope,item);
}
- QCString key;
+ QCString key(40+explicitScopePart.length());
key.sprintf("%p:%p:%p:%s",scope,fileScope,item,explicitScopePart.data());
static QDict<void> visitedDict;
if (visitedDict.find(key)) return -1; // already looked at this