Summary
ktoml crashes with StackOverflowError when parsing deeply nested arrays or comment-heavy files. The recursive parsing approach does not have depth protection.
Affected toml-test cases (2)
Found via toml-lang/toml-test compliance suite:
valid/array/nested-double.toml — deeply nested arrays [[[[...]]]]
valid/comment/tricky.toml — file with many comments triggering deep recursion
Related: #32
Summary
ktoml crashes with
StackOverflowErrorwhen parsing deeply nested arrays or comment-heavy files. The recursive parsing approach does not have depth protection.Affected toml-test cases (2)
Found via
toml-lang/toml-testcompliance suite:valid/array/nested-double.toml— deeply nested arrays[[[[...]]]]valid/comment/tricky.toml— file with many comments triggering deep recursionRelated: #32