Commit 0744218d authored by Michael R Sweet's avatar Michael R Sweet

No longer allow malformed element names (Bug #509)

parent ff7486f2
......@@ -5,6 +5,7 @@ CHANGES IN Mini-XML 2.10
- The version number in mxml.h was wrong (Bug #532)
- The mxml.spec file was out of date (Bug #521)
- Mini-XML no longer allows malformed element names (Bug #509)
- mxmlLoad* and mxmlSAXLoad* did not properly create text nodes when
MXML_TEXT_CALLBACK was specified (Bug #531)
- mxmlDelete used a recursive algorithm which could require large
......
......@@ -1577,6 +1577,8 @@ mxml_load_data(
if (mxml_add_char(ch, &bufptr, &buffer, &bufsize))
goto error;
}
else if (ch < '0' && ch != '!' && ch != '-' && ch != '.' && ch != '/')
goto error;
else if (mxml_add_char(ch, &bufptr, &buffer, &bufsize))
goto error;
else if (((bufptr - buffer) == 1 && buffer[0] == '?') ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment