From: Olivier Matz Date: Thu, 7 Mar 2019 18:15:31 +0000 (+0100) Subject: reminder X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=15e236218208ff946d8ad24f24e1a45285d82bfa;p=protos%2Flibecoli.git reminder --- diff --git a/src/ecoli_parse.c b/src/ecoli_parse.c index 3d6be77..3b27070 100644 --- a/src/ecoli_parse.c +++ b/src/ecoli_parse.c @@ -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;