From: Philippe Antoine Date: Wed, 15 Apr 2020 09:48:13 +0000 (+0200) Subject: conf: returns instead of exiting in ConfYamlParse X-Git-Tag: suricata-6.0.0-beta1~516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe1d36ec7eff8fecbe39f4d7447c0ab24a9d37ee;p=thirdparty%2Fsuricata.git conf: returns instead of exiting in ConfYamlParse So that we can keep on fuzzing even on too much recursion --- 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) {