From 15e236218208ff946d8ad24f24e1a45285d82bfa Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 7 Mar 2019 19:15:31 +0100 Subject: [PATCH] reminder --- src/ecoli_parse.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5