From e9185650216f3c3fa97759caf67ee79db66cb5e1 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Fri, 9 Apr 2021 20:30:52 +0200 Subject: issue #8474: Crash: double free or corruption (out) --- src/ftvhelp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &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; -- cgit v0.12