mirror of
https://github.com/yaml/libyaml
synced 2026-06-08 18:28:36 +00:00
8566d43341
MAX_NESTING_LEVEL was only checked in parser.c, so yaml_parser_scan() callers had no depth protection. Deep flow nesting caused O(n²) CPU via simple_keys scanning. Add the limit check in the scanner's yaml_parser_increase_flow_level() and a test.
10 lines
451 B
Makefile
10 lines
451 B
Makefile
AM_CPPFLAGS = -I$(top_srcdir)/include -Wall
|
|
#AM_CFLAGS = -Wno-pointer-sign
|
|
LDADD = $(top_builddir)/src/libyaml.la
|
|
TESTS = test-version test-reader test-nesting
|
|
check_PROGRAMS = test-version test-reader test-nesting
|
|
noinst_PROGRAMS = run-scanner run-parser run-loader run-emitter run-dumper \
|
|
example-reformatter example-reformatter-alt \
|
|
example-deconstructor example-deconstructor-alt \
|
|
run-parser-test-suite run-emitter-test-suite
|