We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cb416f commit 441a7ccCopy full SHA for 441a7cc
1 file changed
parseagle/common/domelement.cpp
@@ -53,6 +53,13 @@ DomElement DomElement::parse(QXmlStreamReader& reader)
53
54
DomElement DomElement::parse(QByteArray data)
55
{
56
+ // Sanity check that no Eagle v5 (binary) project is imported.
57
+ if (!data.contains("<?xml")) {
58
+ throw std::runtime_error("File does not seem to contain valid XML. "
59
+ "Please note that only projects from EAGLE v6 "
60
+ "or later are supported.");
61
+ }
62
+
63
// Workaround for garbage in some Eagle XML files, see
64
// https://gitlab.com/kicad/code/kicad/-/work_items/11008
65
data.replace("\x0c", "");
0 commit comments