Closed perlpunk closed 3 months ago
Each nesting level increases the stack and the number of previous starting events that the parser has to check.
The default maximum is 1000 and can be set via yaml_set_max_nest_level()
yaml_set_max_nest_level()
I also added new options to run-parser and run-parser-test-suite:
run-parser
run-parser-test-suite
--max-level
--show-error
Note: This is done via a global variable in order to not break existing bindings.
Each nesting level increases the stack and the number of previous starting events that the parser has to check.
The default maximum is 1000 and can be set via
yaml_set_max_nest_level()
I also added new options to
run-parser
andrun-parser-test-suite
:--max-level
: you can now try out this feature on the command line--show-error
: By default,run-parser
doesn't show errors. The new option helps with debuggingNote: This is done via a global variable in order to not break existing bindings.