summaryrefslogblamecommitdiffstats
path: root/source/d/doxygen/patches/doxygen-1.9.1-crash_in_docparser.patch
blob: adcd1440b1e4a6516df2d758a68bc514cb90d430 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                       
diff -up doxygen-1.9.1/src/docparser.cpp.me doxygen-1.9.1/src/docparser.cpp
--- doxygen-1.9.1/src/docparser.cpp.me	2021-02-10 10:52:09.481086282 +0100
+++ doxygen-1.9.1/src/docparser.cpp	2021-02-10 10:55:32.418781686 +0100
@@ -951,7 +951,7 @@ static void handlePendingStyleCommands(D
       children.append(new DocStyleChange(parent,g_nodeStack.count(),sc->style(),sc->tagName(),FALSE));
       g_initialStyleStack.push(sc);
       g_styleStack.pop();
-      sc = g_styleStack.top();
+      sc = !g_styleStack.isEmpty() ? g_styleStack.top() : 0;
     }
   }
 }