summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-04-09 18:30:52 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-04-09 18:30:52 (GMT)
commite9185650216f3c3fa97759caf67ee79db66cb5e1 (patch)
treeec710eee59b9039b119ab360a0cf301062d23b31 /src
parentde49d8bb985d315ac85b6ade2bec9d449526ce0c (diff)
downloadDoxygen-e9185650216f3c3fa97759caf67ee79db66cb5e1.zip
Doxygen-e9185650216f3c3fa97759caf67ee79db66cb5e1.tar.gz
Doxygen-e9185650216f3c3fa97759caf67ee79db66cb5e1.tar.bz2
issue #8474: Crash: double free or corruption (out)
Diffstat (limited to 'src')
-rw-r--r--src/ftvhelp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp
index 7ef38c8..24e3fbb 100644
--- a/src/ftvhelp.cpp
+++ b/src/ftvhelp.cpp
@@ -701,7 +701,7 @@ static void generateJSNavTree(const std::vector<FTVNode*> &nodeList)
// write the navigation index (and sub-indices)
std::sort(navIndex.begin(),navIndex.end(),[](const auto &n1,const auto &n2)
- { return qstrcmp(n1.url,n2.url)<0; });
+ { return !n1.url.isEmpty() && (n2.url.isEmpty() || qstrcmp(n1.url,n2.url)<0); });
int subIndex=0;
int elemCount=0;