conf: returns instead of exiting in ConfYamlParse

So that we can keep on fuzzing even on too much recursion
pull/4824/head
Philippe Antoine 6 years ago
parent dfdf2eb050
commit fe1d36ec7e

@ -185,8 +185,9 @@ ConfYamlParse(yaml_parser_t *parser, ConfNode *parent, int inseq, int rlevel)
int retval = 0; int retval = 0;
if (rlevel++ > RECURSION_LIMIT) { 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."); "configuration file, aborting.");
return -1;
} }
while (!done) { while (!done) {

Loading…
Cancel
Save