summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-01-02 21:19:55 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-01-02 21:19:55 (GMT)
commitb965d71c36017c5ad67e78a6cb8e300ddbec7bf6 (patch)
treeaaaafa7e7f9b22a7659a75f82096d3dd085a98f5
parent20858992913890406e523a002c1333da20bbd2b6 (diff)
downloadDoxygen-b965d71c36017c5ad67e78a6cb8e300ddbec7bf6.zip
Doxygen-b965d71c36017c5ad67e78a6cb8e300ddbec7bf6.tar.gz
Doxygen-b965d71c36017c5ad67e78a6cb8e300ddbec7bf6.tar.bz2
Fix for potential memory corruption. Note that this is now included in
release 1.4.6 if downloaded after 01-01-2006.
-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