Fix segfault in mxmlLoad*() with invalid XML.

pull/193/head
Michael R Sweet 19 years ago
parent 82913f58c7
commit e0262e0099
  1. 8
      CHANGES
  2. 2
      configure.in
  3. 2
      doc/reference.html
  4. 2
      mxml-file.c
  5. 2
      mxml.spec

@ -1,6 +1,12 @@
CHANGES - 05/19/2005 CHANGES - 05/30/2005
-------------------- --------------------
CHANGES IN Mini-XML 2.2.3
- mxmlLoad*() crashed when reporting an error in some
invalid XML (STR #23)
CHANGES IN Mini-XML 2.2.2 CHANGES IN Mini-XML 2.2.2
- mxmlLoad*() did not treat custom data as opaque, so - mxmlLoad*() did not treat custom data as opaque, so

@ -23,7 +23,7 @@ dnl Set the name of the config header file...
AC_CONFIG_HEADER(config.h) AC_CONFIG_HEADER(config.h)
dnl Version number... dnl Version number...
VERSION=2.2.2 VERSION=2.2.3
AC_SUBST(VERSION) AC_SUBST(VERSION)
AC_DEFINE_UNQUOTED(MXML_VERSION, "Mini-XML v$VERSION") AC_DEFINE_UNQUOTED(MXML_VERSION, "Mini-XML v$VERSION")

@ -2,7 +2,7 @@
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head> <head>
<title>Documentation</title> <title>Documentation</title>
<meta name='creator' content='Mini-XML v2.2.1'/> <meta name='creator' content='Mini-XML v2.2.2'/>
<style><!-- <style><!--
h1, h2, h3, p { font-family: sans-serif; text-align: justify; } h1, h2, h3, p { font-family: sans-serif; text-align: justify; }
tt, pre a:link, pre a:visited, tt a:link, tt a:visited { font-weight: bold; color: #7f0000; } tt, pre a:link, pre a:visited, tt a:link, tt a:visited { font-weight: bold; color: #7f0000; }

@ -1703,7 +1703,7 @@ mxml_load_data(mxml_node_t *top, /* I - Top node */
*/ */
mxml_error("Mismatched close tag <%s> under parent <%s>!", mxml_error("Mismatched close tag <%s> under parent <%s>!",
buffer, parent->value.element.name); buffer, parent ? parent->value.element.name : "(nil)");
goto error; goto error;
} }

@ -18,7 +18,7 @@
Summary: Miniature XML development library Summary: Miniature XML development library
Name: mxml Name: mxml
Version: 2.2.2 Version: 2.2.3
Release: 1 Release: 1
Copyright: GPL Copyright: GPL
Group: Development/Libraries Group: Development/Libraries

Loading…
Cancel
Save