git.droids-corp.org
/
protos
/
libecoli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reminder
[protos/libecoli.git]
/
src
/
ecoli_parse.c
diff --git
a/src/ecoli_parse.c
b/src/ecoli_parse.c
index
3d6be77
..
3b27070
100644
(file)
--- 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;
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;
if (ec_node_type(node)->parse == NULL) {
errno = ENOTSUP;
return -1;