Commit Graph

101 Commits

Author SHA1 Message Date
Michael R Sweet
bd4eb861a7
Fix potential memory leak in mxmlLoadXxx (Issue #278, Issue #279) 2021-10-26 14:34:33 -04:00
Michael R Sweet
1df294d735
Fix some minor Coverity memory leak issues. 2021-10-26 13:44:00 -04:00
Michael R Sweet
dd55272944
Fix handling of elements that start with a Unicode character (Issue #267) 2020-10-02 16:36:19 -04:00
Michael R Sweet
2099ff6962
Fix unquoted Unicode attribute values (Issue #264)
Bump version to 3.2.

Bump copyright to 2020.
2020-01-10 14:55:59 -05:00
Michael R Sweet
55c6c7278d
Add proper annotation to mxml_error and fix format string errors in several
places (detected by LGTM security scanner)
2019-11-17 08:38:38 -05:00
Michael R Sweet
e2f7978b15
Roll back part of the change for Issue #256 since it causes a regression for
some applications and the XML 1.0 specification only requires an XML file to
start with '<' (Issue #259)
2019-07-08 14:15:19 -04:00
Michael R Sweet
a084198be8
Error out when file does not start with ?xml and the top node is NULL (Issue #256) 2019-07-03 22:27:47 -04:00
Michael R Sweet
a69fcbcaaa
Fix _mxml_vsnprintf on Windows (Issue #245) 2019-02-10 10:40:53 -05:00
Michael R Sweet
621a4de9b2
Add line numbers to error messages (Issue #230) 2019-01-05 12:23:17 -05:00
Michael R Sweet
f166ad1977
License change to Apache 2.0 w/exceptions for GPL2/LGPL2 software. 2019-01-04 20:44:51 -05:00
Michael R Sweet
ea6778390a
Bump version to 3.0.
Move all of the private structure definitions to mxml-private.h.
2019-01-04 20:02:48 -05:00
Michael R Sweet
4f5577dd46
Fix potential buffer overflow when writing a double (Issue #233) 2018-12-03 11:21:39 -05:00
Michael R Sweet
f86c2671aa
Do not write siblings of the passed node (Issue #228) 2018-10-01 13:15:22 -04:00
Michael R Sweet
d32a541211
Fix crash bug in mxmlWrite functions (Issue #228) 2018-09-29 20:31:10 -04:00
Michael R Sweet
e796fe4caf
Add a Note: for all of the text/opaque string support (Issue #190) 2018-07-02 18:56:43 -04:00
Michael Sweet
ef7e5d433c Fix writing of custom data nodes (Issue #201) 2017-10-11 17:13:37 -04:00
Michael Sweet
bcfa6ef518 Update/fix documentation.
Add mxmlNewOpaquef and mxmlSetOpaquef functions.

Fix discussion writing code to look for opaque strings.

Fix dependencies for documentation generation.
2017-04-24 10:42:03 -04:00
Michael Sweet
923dc965b9 CDATA nodes now omit the trailing "]]" for convenience (Issue #170) 2017-03-29 21:42:30 -04:00
Michael Sweet
6ac1fb23f4 Use vasprintf when available.
Use strlcpy when available.

Add xcode project.
2017-03-29 19:04:41 -04:00
Michael Sweet
89a9742c0e Bump version to 2.11.
Update copyrights and web site addresses.

New logo image following msweet.org template.
2017-03-22 14:51:16 -04:00
Michael R Sweet
0744218d66 No longer allow malformed element names (Bug #509) 2016-06-13 00:51:16 +00:00
Michael R Sweet
ff7486f265 mxmlLoad* and mxmlSAXLoad* did not properly create text nodes when
MXML_TEXT_CALLBACK was specified (Bug #531)
2016-06-13 00:27:11 +00:00
Michael R Sweet
5f74dc2124 mxmlWrite* used a recursive algorithm which could require large amounts of
stack space depending on the file (Bug #549, CVE-2016-4571)
2016-06-12 21:12:11 +00:00
Michael R Sweet
21f436f36c Fix loading of text values with MXML_NO_CALLBACK or MXML_TEXT_CALLBACK (Bug #502)
Update unit test program to validate fix and cleanup output so that we can get
proper error messages.
2014-10-19 17:21:48 +00:00
Michael R Sweet
f760c840ff Fixed an XML fragment loading problem (Bug #494) 2014-01-05 03:28:03 +00:00
Michael R Sweet
6471e5ccd4 Fixed a memory leak when loading invalid XML (Bug #496) 2014-01-05 03:21:00 +00:00
Michael R Sweet
4351cf060c Prep for 2.8 release... 2014-01-04 21:50:06 +00:00
Michael R Sweet
ace5aa8686 Fix reading of UTF-16 characters from files. 2013-11-12 05:03:47 +00:00
Michael R Sweet
682852c289 Fix memory leak when loading a badly-formed XML file (STR #121) 2011-03-24 05:47:51 +00:00
Michael R Sweet
6af02aaf9d Avoid a double-free situation when using the SAX load method.
Add missing contents.
2011-01-22 01:02:05 +00:00
Michael R Sweet
a11d22799e Make mxmlSave* function descriptions consistent. 2010-09-19 07:29:46 +00:00
Michael R Sweet
c0f12e6a79 mxmlSave* no longer write all siblings of the passed node, just that node and
its children.
2010-09-19 07:27:48 +00:00
Michael R Sweet
34424e2757 Remove duplicate "the the". 2010-09-19 06:40:33 +00:00
Michael R Sweet
6b83ce881e mxmlLoad* did not error out on XML with multiple root nodes (STR #101) 2010-09-19 06:14:36 +00:00
Michael R Sweet
97ca6dc424 Updated the source headers to reference the Mini-XML license and its exceptions
to the LGPL2 (STR #108)
2010-09-19 05:26:46 +00:00
Michael R Sweet
96a610c1e5 Ignore (strip) BOMs in UTF-8 input. 2009-05-17 05:20:52 +00:00
Michael R Sweet
fa33165459 Fix UTF-8 output on platforms with an unsigned char. 2009-03-21 05:51:01 +00:00
Michael R Sweet
3f34b234cc Reject UTF-8 XML files that start with a BOM. 2009-03-19 05:27:26 +00:00
Michael R Sweet
9643c13183 Fix VC++ compile failures 2009-02-05 06:06:11 +00:00
Michael R Sweet
a38251bc9b Wrapping was not disabled when mxmlSetWrapMargin(0) was called, and
"<?xml ... ?>" was always followed by a newline (STR #76)
2008-03-21 04:59:01 +00:00
Michael R Sweet
8174485371 Add support for spaces around the "=" in attributes (STR #67)
Fix support for processing instructions and directives that are not
at the top level of a file (STR #67)
2008-01-13 00:42:35 +00:00
Michael R Sweet
c1c940970d Convert to DLL 2007-10-03 06:25:07 +00:00
Michael R Sweet
1f5e9b0758 Prep work to add threading support to Mini-XML. 2007-09-21 04:46:02 +00:00
Michael R Sweet
d6d842e60a Bump version to 2.4.
Added mxmlElementDeleteAttr() function (STR #59).
2007-09-15 20:03:15 +00:00
Michael R Sweet
f5993028ff Don't allow attributes without values. 2007-09-09 08:22:12 +00:00
Michael R Sweet
7da48b7de7 XML only treats space, tab, carriage return, and line feed as whitespace
characters.
2007-09-09 08:16:24 +00:00
Michael R Sweet
207782c809 Propagate element errors (STR #46) 2007-09-09 08:11:25 +00:00
Michael R Sweet
30feac1369 Add mxml_isspace() local Unicode implementation of isspace() with inlining
when possible (STR #48)
2007-09-09 07:27:08 +00:00
Michael R Sweet
bf73da6782 Save work on documentation.
Add SAX load APIs.

Add man page output for mxmldoc.

Add types for various callback functions.
2007-04-23 21:48:03 +00:00
Michael R Sweet
d5abcc44b3 Fix detection of bad elements. 2007-04-18 02:45:47 +00:00