doxygen-1.8.4-infinite_loop.patch 570 Bytes
Fix inifite loop 

https://bugs.gentoo.org/show_bug.cgi?id=474716
https://bugzilla.gnome.org/show_bug.cgi?id=701295

Patch written by Dimitri van Heesch <dimitri@stack.nl>

--- a/src/util.cpp
+++ b/src/util.cpp
@@ -1843,11 +1843,15 @@ int findParameterList(const QString &name)
         ++templateDepth;
         pos=nextOpenPos-1;
       }
-      else
+      else if (nextClosePos!=-1)
       {
         --templateDepth;
         pos=nextClosePos-1;
       }
+      else // more >'s than <'s, see bug701295
+      {
+        return -1;
+      }
     }
     else
     {