-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
encoding/json: cyclic maps and slices are not detected #40745
Comments
I agree that this is probably a case we missed and should be fixed. Do you want to send a CL? |
Change https://golang.org/cl/248358 mentions this issue: |
great, new test case |
@eaglexiang Thank you for reviewing the code. Since marshalling cyclic structures results in a |
@mvdan I sent a CL last week, but received no feedback. This is my first time to conribute to Go. What should I do next? Or just wait? Thank you. |
@lujjjh yes, I was pinged by Gerrit a week ago, and I've seen your ping yesterday on Gerrit and your ping here today. I'm taking some time off this week, or at least trying to. A week is not a long time to wait for a review, especially given that it's August. I'll likely give a review sometime next week, unless someone beats me to it. But in general, please be a bit patient. |
The documentation says:
However, there are still cases result in an infinite recursion in Go 1.15.
It seems that 64c9ee9 does not handle cyclic maps or slices:
and
Originally posted by @lujjjh in #10769 (comment)
The text was updated successfully, but these errors were encountered: