From e25977561907befe17844665942a4f7a6e96d321 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Tue, 6 Aug 2013 20:49:15 +0200 Subject: Bug 705586 - @code tag as the last line of a comment block causes the parser to hang --- src/markdown.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/markdown.cpp b/src/markdown.cpp index 6312733..63d6cfc 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -1831,10 +1831,11 @@ static void findEndOfLine(GrowBuf &out,const char *data,int size, ) { QCString endBlockName = isBlockCommand(data+end-1,end-1,size-(end-1)); + end++; if (!endBlockName.isEmpty()) { int l = endBlockName.length(); - for (;end