Fix unquoted Unicode attribute values (Issue #264)

Bump version to 3.2.

Bump copyright to 2020.
pull/268/head
Michael R Sweet 4 years ago
parent 12a8d2962b
commit 2099ff6962
No known key found for this signature in database
GPG Key ID: 999559A027815955
  1. 4
      CHANGES.md
  2. 2
      NOTICE
  3. 4
      README.md
  4. 20
      configure
  5. 4
      configure.ac
  6. 7
      mxml-file.c

@ -1,6 +1,8 @@
# Changes in Mini-XML CURRENT
# Changes in Mini-XML 3.2
- Added support for shared libraries on Haiku (Issue #262)
- Fixed handling of unquoted attribute values that start with a Unicode
character (Issue #264)
- Fixed some minor issues identified by the LGTM security scanner.

@ -1,6 +1,6 @@
Mini-XML
Copyright © 2003-2019 by Michael R Sweet
Copyright © 2003-2020 by Michael R Sweet
Exceptions to the Apache 2.0 License:

@ -1,4 +1,4 @@
Mini-XML Version 3.1
Mini-XML Version 3.2
====================
Mini-XML is a small XML parsing library that you can use to read XML data files
@ -192,7 +192,7 @@ current version of this software, documentation, and Github issue tracking page.
Legal Stuff
-----------
Copyright © 2003-2019 by Michael R Sweet
Copyright © 2003-2020 by Michael R Sweet
The Mini-XML library is licensed under the Apache License Version 2.0 with an
exception to allow linking against GPL2/LGPL2-only software. See the files

20
configure vendored

@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for Mini-XML 3.1.
# Generated by GNU Autoconf 2.69 for Mini-XML 3.2.
#
# Report bugs to <https://github.com/michaelrsweet/mxml/issues>.
#
@ -580,8 +580,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='Mini-XML'
PACKAGE_TARNAME='mxml'
PACKAGE_VERSION='3.1'
PACKAGE_STRING='Mini-XML 3.1'
PACKAGE_VERSION='3.2'
PACKAGE_STRING='Mini-XML 3.2'
PACKAGE_BUGREPORT='https://github.com/michaelrsweet/mxml/issues'
PACKAGE_URL='https://michaelrsweet.github.io/mxml'
@ -1269,7 +1269,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures Mini-XML 3.1 to adapt to many kinds of systems.
\`configure' configures Mini-XML 3.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1334,7 +1334,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of Mini-XML 3.1:";;
short | recursive ) echo "Configuration of Mini-XML 3.2:";;
esac
cat <<\_ACEOF
@ -1434,7 +1434,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
Mini-XML configure 3.1
Mini-XML configure 3.2
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@ -1841,7 +1841,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Mini-XML $as_me 3.1, which was
It was created by Mini-XML $as_me 3.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@ -2299,7 +2299,7 @@ host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g'`
ac_config_headers="$ac_config_headers config.h"
VERSION="3.1"
VERSION="3.2"
cat >>confdefs.h <<_ACEOF
#define MXML_VERSION "Mini-XML v$VERSION"
@ -5175,7 +5175,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by Mini-XML $as_me 3.1, which was
This file was extended by Mini-XML $as_me 3.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@ -5238,7 +5238,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
Mini-XML config.status 3.1
Mini-XML config.status 3.2
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

@ -3,14 +3,14 @@ dnl Configuration script for Mini-XML, a small XML-like file parsing library.
dnl
dnl https://www.msweet.org/mxml
dnl
dnl Copyright © 2003-2019 by Michael R Sweet.
dnl Copyright © 2003-2020 by Michael R Sweet.
dnl
dnl Licensed under Apache License v2.0. See the file "LICENSE" for more
dnl information.
dnl
dnl Package name and version...
AC_INIT([Mini-XML], [3.1], [https://github.com/michaelrsweet/mxml/issues], [mxml], [https://michaelrsweet.github.io/mxml])
AC_INIT([Mini-XML], [3.2], [https://github.com/michaelrsweet/mxml/issues], [mxml], [https://michaelrsweet.github.io/mxml])
dnl This line is provided to ensure that you don't run the autoheader program
dnl against this project. Doing so is completely unsupported and WILL cause

@ -3,7 +3,7 @@
*
* https://www.msweet.org/mxml
*
* Copyright © 2003-2019 by Michael R Sweet.
* Copyright © 2003-2020 by Michael R Sweet.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
* information.
@ -2317,8 +2317,9 @@ mxml_parse_element(
* Read unquoted value...
*/
value[0] = ch;
ptr = value + 1;
ptr = value;
if (mxml_add_char(ch, &ptr, &value, &valsize))
goto error;
while ((ch = (*getc_cb)(p, encoding)) != EOF)
{

Loading…
Cancel
Save