Infinite loop with an XML
The attached XML is slightly malformed, but in a way that produces an infinite loop rather than an error message.
The fix is actually quite simple in this case:
importxmlpass2.cpp line 4502 (in fn note()) needs a check for EndDocument too.
while (!(_e.tokenType() == QXmlStreamReader::StartElement)
&& !(_e.tokenType() == QXmlStreamReader::EndElement && _e.name() == "note")
&& !(_e.tokenType() == QXmlStreamReader::EndDocument ));
However, the same issue might occur in other slightly differently malformed cases as well so I'd prefer someone more knowledgeable of the relevant code do the PR.