Blame doxygen-1.4.8-endless-loop.patch
|
Than Ngo |
b0278a |
commit 5e056236c9ef3b3675d014cab43480700027d60b
|
|
Than Ngo |
b0278a |
Author: Dimitri van Heesch <dimitri@stack.nl>
|
|
Than Ngo |
b0278a |
Date: Thu May 30 20:01:15 2013 +0200
|
|
Than Ngo |
b0278a |
|
|
Than Ngo |
b0278a |
Bug 701295 - Doxygen 1.8.4 goes into an endless loop
|
|
Than Ngo |
b0278a |
|
|
Than Ngo |
b0278a |
diff --git a/src/util.cpp b/src/util.cpp
|
|
Than Ngo |
b0278a |
index 0d70d43..0c36fc0 100644
|
|
Than Ngo |
b0278a |
--- a/src/util.cpp
|
|
Than Ngo |
b0278a |
+++ b/src/util.cpp
|
|
Than Ngo |
b0278a |
@@ -1843,11 +1843,15 @@ int findParameterList(const QString &name)
|
|
Than Ngo |
b0278a |
++templateDepth;
|
|
Than Ngo |
b0278a |
pos=nextOpenPos-1;
|
|
Than Ngo |
b0278a |
}
|
|
Than Ngo |
b0278a |
- else
|
|
Than Ngo |
b0278a |
+ else if (nextClosePos!=-1)
|
|
Than Ngo |
b0278a |
{
|
|
Than Ngo |
b0278a |
--templateDepth;
|
|
Than Ngo |
b0278a |
pos=nextClosePos-1;
|
|
Than Ngo |
b0278a |
}
|
|
Than Ngo |
b0278a |
+ else // more >'s than <'s, see bug701295
|
|
Than Ngo |
b0278a |
+ {
|
|
Than Ngo |
b0278a |
+ return -1;
|
|
Than Ngo |
b0278a |
+ }
|
|
Than Ngo |
b0278a |
}
|
|
Than Ngo |
b0278a |
else
|
|
Than Ngo |
b0278a |
{
|