diff --git a/CHANGES.md b/CHANGES.md index 2858b00..f8925e5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,11 +8,13 @@ - Added new `MXML_TYPE_CDATA`, `MXML_TYPE_COMMENT`, `MXML_TYPE_DECLARATION`, and `MXML_TYPE_DIRECTIVE` node types (Issue #250) - Added `mxmlLoadFilename` and `mxmlSaveFilename` functions (Issue #291) +- Added AFL fuzzing support (Issue #306) - Renamed `mxml_type_t` enumerations to `MXML_TYPE_xxx` (Issue #251) - Updated APIs to use bool type instead of an int representing a boolean value. - Updated the SAX callback to return a `bool` value to control processing (Issue #51) - Updated the load and save callbacks to include a context pointer (Issue #106) +- Fixed some warnings (Issue #301) # Changes in Mini-XML 3.3.2 diff --git a/mxml-search.c b/mxml-search.c index ad3f66d..47205e2 100644 --- a/mxml-search.c +++ b/mxml-search.c @@ -117,7 +117,7 @@ mxmlFindPath(mxml_node_t *top, // I - Top node if ((pathsep = strchr(path, '/')) == NULL) pathsep = path + strlen(path); - if (pathsep == path || (pathsep - path) >= sizeof(element)) + if (pathsep == path || (size_t)(pathsep - path) >= sizeof(element)) return (NULL); memcpy(element, path, pathsep - path);