summaryrefslogtreecommitdiff
path: root/doxygen-1.9.1-crash_in_docparser.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-05 01:50:23 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-05 01:50:23 +0000
commit26b5fa356ce6a3a6a9755bb19ff691603bb35e09 (patch)
tree89567b421df317cc681e1dcf44806e6001dc55e3 /doxygen-1.9.1-crash_in_docparser.patch
parent55e9b7fc7b32c678844d7990994627f91731177c (diff)
automatic import of doxygenopeneuler24.03_LTS
Diffstat (limited to 'doxygen-1.9.1-crash_in_docparser.patch')
-rw-r--r--doxygen-1.9.1-crash_in_docparser.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/doxygen-1.9.1-crash_in_docparser.patch b/doxygen-1.9.1-crash_in_docparser.patch
new file mode 100644
index 0000000..adcd144
--- /dev/null
+++ b/doxygen-1.9.1-crash_in_docparser.patch
@@ -0,0 +1,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;
+ }
+ }
+ }