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

pull/274/head
Michael R Sweet 4 years ago
parent f1b2682ce1
commit dd55272944
No known key found for this signature in database
GPG Key ID: 999559A027815955
  1. 1
      CHANGES.md
  2. 5
      mxml-file.c

@ -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.

@ -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 == '\'')
{

Loading…
Cancel
Save