]> git.droids-corp.org - protos/libecoli.git/commitdiff
reminder
authorOlivier Matz <zer0@droids-corp.org>
Thu, 7 Mar 2019 18:15:31 +0000 (19:15 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 7 Mar 2019 18:15:31 +0000 (19:15 +0100)
src/ecoli_parse.c

index 3d6be77a41b672c3dcb448f97053d304967ea736..3b2707044f9ca1cea03776d7d174857989d70f68 100644 (file)
@@ -42,6 +42,8 @@ static int __ec_node_parse_child(const struct ec_node *node,
        struct ec_parse *child = NULL;
        int ret;
 
+       // XXX limit max number of recursions to avoid segfault
+
        if (ec_node_type(node)->parse == NULL) {
                errno = ENOTSUP;
                return -1;