Skip to content

Syntax error causes config parser to go into infinite loop #3

@jabl

Description

@jabl

I noticed when I had a config file with
[[ Repo ]]
instead of
[[Repo]]
git-mirror just hung and consumed 100% cpu when starting with no message printed to stderr/out. A bit of debugging turned out that the culprit was the toml parser which went into an infinite loop.

Perhaps switch to another toml parser, https://github.com/toml-lang/toml lists several ones for golang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions