-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Prevent stack overflow in Attribute.cs #111225
Conversation
The comment is incorrect, but I'm not sure whether behavior needs to change. An Are there any real-world examples that would need this fix? |
Real life example was from my code (see original bug). |
I agree that custom Equals override should be better, but I think that framework should show correct error. |
I finally able to formulate why I think that need to be changed. |
There are many ways the default implementation of Equals for ValueTypes or Attributes can lead to an infinite recursion. It is not practical to prevent it. We should delete the |
@jkotas as you wish |
fixes #35784