Skip to content
Snippets Groups Projects
Commit 58a07249 authored by dt's avatar dt
Browse files

Fixes: Fix parseOption method to be robust

parent a0fb72c5
No related branches found
No related tags found
No related merge requests found
...@@ -548,8 +548,15 @@ void CMakeCbpParser::parseOption() ...@@ -548,8 +548,15 @@ void CMakeCbpParser::parseOption()
{ {
if (attributes().hasAttribute("title")) if (attributes().hasAttribute("title"))
m_projectName = attributes().value("title").toString(); m_projectName = attributes().value("title").toString();
if(isStartElement())
parseUnknownElement(); while (!atEnd()) {
readNext();
if (isEndElement()) {
return;
} else if(isStartElement()) {
parseUnknownElement();
}
}
} }
void CMakeCbpParser::parseMakeCommand() void CMakeCbpParser::parseMakeCommand()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment