Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 2df2a36e authored by kraus's avatar kraus
Browse files

don't allow unknown attributes

parent e3a830a7
No related branches found
No related tags found
1 merge request!12Probe peak
......@@ -141,11 +141,8 @@ void OpalElement::parse(Statement &stat) {
Attribute *attr = findAttribute(name);
if(attr == 0) {
// Append unknown attribute to the attribute list. Keep the original
// size in itsSize, so as to recognize the added attributes.
itsAttr.push_back(Attributes::makeReal(name, "user-defined"));
attr = &itsAttr.back();
registerRealAttribute(name);
throw OpalException("OpalElement::parse",
"unknown attribute \"" + name + "\"");
}
if(stat.delimiter('[')) {
......
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