We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following yaml causes a stack overflow:
key1: &anchor subkey: *anchor key2: *anchor
If you remove either the second or third line, it parses successfully. Here's a real-world example where this fails.
Here's a minimal example:
package main import ( "github.com/goccy/go-yaml" ) type Key struct { SubKey *Key `yaml:"subkey"` } type Test struct { Key1 *Key `yaml:"key1"` Key2 *Key `yaml:"key2"` } var test = []byte(` key1: &anchor subkey: *anchor key2: *anchor `) func main() { t := new(Test) // causes stack overflow yaml.Unmarshal(test, t) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following yaml causes a stack overflow:
If you remove either the second or third line, it parses successfully. Here's a real-world example where this fails.
Here's a minimal example:
The text was updated successfully, but these errors were encountered: