Skip to content

Stack overflow when parsing a deeply nested toml_edit::Document #206

@ghost

Description

Basically the same error as seen as toml-rs/toml-rs#428

Reproduction code:

fn main() {
    let brackets = "[".repeat(20000);
    let input_string = format!("x={}", &brackets);
    input_string.parse::<toml_edit::Document>().unwrap();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parseArea: Parsing TOMLC-bugCategory: Things not working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions