]>
Commit | Line | Data |
---|---|---|
fb24f570 SS |
1 | commit 5e056236c9ef3b3675d014cab43480700027d60b |
2 | Author: Dimitri van Heesch <dimitri@stack.nl> | |
3 | Date: Thu May 30 20:01:15 2013 +0200 | |
4 | ||
5 | Bug 701295 - Doxygen 1.8.4 goes into an endless loop | |
6 | ||
7 | diff --git a/src/util.cpp b/src/util.cpp | |
8 | index 0d70d43..0c36fc0 100644 | |
9 | --- a/src/util.cpp | |
10 | +++ b/src/util.cpp | |
11 | @@ -1843,11 +1843,15 @@ int findParameterList(const QString &name) | |
12 | ++templateDepth; | |
13 | pos=nextOpenPos-1; | |
14 | } | |
15 | - else | |
16 | + else if (nextClosePos!=-1) | |
17 | { | |
18 | --templateDepth; | |
19 | pos=nextClosePos-1; | |
20 | } | |
21 | + else // more >'s than <'s, see bug701295 | |
22 | + { | |
23 | + return -1; | |
24 | + } | |
25 | } | |
26 | else | |
27 | { |