Blame doxygen-1.9.1-crash_in_docparser.patch

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