Commit d32a5412 authored by Michael R Sweet's avatar Michael R Sweet

Fix crash bug in mxmlWrite functions (Issue #228)

parent 501dcfe6
......@@ -8,7 +8,8 @@
- The `mxmlNewCDATA` and `mxmlSetCDATA` functions incorrectly added the XML
trailer "]]" to the string (Issue #216)
- Cross-compiling failed on install (Issue #218)
- Updated the ZIP container library used for mxmldoc.
- Fixed a crash bug in the `mxmlWrite` functions (Issue #228)
- Updated the markdown and ZIP container libraries used for mxmldoc.
# Changes in Mini-XML 2.11
......
/*
* File loading code for Mini-XML, a small XML file parsing library.
*
* Copyright 2003-2017 by Michael R Sweet.
* Copyright 2003-2018 by Michael R Sweet.
*
* These coded instructions, statements, and computer programs are the
* property of Michael R Sweet and are protected by Federal copyright
......@@ -2974,7 +2974,7 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */
{
while ((next = current->next) == NULL)
{
if (current == node)
if (current == node || !current->parent)
break;
/*
......
......@@ -3,7 +3,7 @@
* Documentation generator using Mini-XML, a small XML file parsing
* library.
*
* Copyright 2003-2017 by Michael R Sweet.
* Copyright 2003-2018 by Michael R Sweet.
*
* These coded instructions, statements, and computer programs are the
* property of Michael R Sweet and are protected by Federal copyright
......
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