Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(parser): Limit recursion to block stackoverflow #404

Merged
merged 1 commit into from Dec 27, 2022
Merged

Commits on Dec 27, 2022

  1. fix(parser): Limit recursion to block stackoverflow

    Without the macros of the old parser, it was much easier to add new
    state for this.  I chose the limit of 128 as that is what serde_json
    does.
    
    I didn't both exposing more configuration for this than the `unbounded`
    feature.  We can add more later if needed but I doubt that.
    Technically, this may break someone but the likelihood is extremely low,
    especially with how toml isn't exactly designed for arbitrary depth and
    with how recently this release was out.
    
    Fixes toml-rs#206
    epage committed Dec 27, 2022
    Configuration menu
    Copy the full SHA
    1ad4147 View commit details
    Browse the repository at this point in the history