From fe1d36ec7eff8fecbe39f4d7447c0ab24a9d37ee Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 15 Apr 2020 11:48:13 +0200 Subject: [PATCH] conf: returns instead of exiting in ConfYamlParse So that we can keep on fuzzing even on too much recursion --- src/conf-yaml-loader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conf-yaml-loader.c b/src/conf-yaml-loader.c index 1f9e72af19..b6f014231d 100644 --- a/src/conf-yaml-loader.c +++ b/src/conf-yaml-loader.c @@ -185,8 +185,9 @@ ConfYamlParse(yaml_parser_t *parser, ConfNode *parent, int inseq, int rlevel) int retval = 0; if (rlevel++ > RECURSION_LIMIT) { - FatalError(SC_ERR_FATAL, "Recursion limit reached while parsing " + SCLogError(SC_ERR_CONF_YAML_ERROR, "Recursion limit reached while parsing " "configuration file, aborting."); + return -1; } while (!done) {