Fix handling of elements that start with a Unicode character (Issue #267)

This commit is contained in:
Michael R Sweet 2020-10-02 16:36:19 -04:00
parent f1b2682ce1
commit dd55272944
No known key found for this signature in database
GPG Key ID: 999559A027815955
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@
- Added support for shared libraries on Haiku (Issue #262)
- Fixed handling of unquoted attribute values that start with a Unicode
character (Issue #264)
- Fixed handling of elements that start with a Unicode character (Issue #267)
- Fixed some minor issues identified by the LGTM security scanner.

View File

@ -2188,8 +2188,9 @@ mxml_parse_element(
* Read the attribute name...
*/
name[0] = ch;
ptr = name + 1;
ptr = name;
if (mxml_add_char(ch, &ptr, &name, &namesize))
goto error;
if (ch == '\"' || ch == '\'')
{