When feeding the expat-based XML backend, an off-by-one error introduced an infinite loop in the backend code. The behavior is triggered when the action is long enough (>2048 bytes). This patch correct this issue.
@@ -447,7 +447,7 @@ int clish_xmlnode_get_content(clish_xmlnode_t *node, char *content,
children = children->next;
}
if (minlen >= *contentlen) {
- *contentlen = minlen;
+ *contentlen = minlen + 1;
return -E2BIG;
children = node->children;