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

ShapeF.Intersects(this IShapeF, IShapeF) Infinite Recursion Bug #850

Closed
AristurtleDev opened this issue May 17, 2024 · 0 comments · Fixed by #852
Closed

ShapeF.Intersects(this IShapeF, IShapeF) Infinite Recursion Bug #850

AristurtleDev opened this issue May 17, 2024 · 0 comments · Fixed by #852
Assignees
Labels

Comments

@AristurtleDev
Copy link
Collaborator

Description

ShapeF.Intersects(this IShapeF, IShapeF) has an infinite recursion bug if both parameters are RectangleF. The bug occurs on this line

RectangleF rectangleA when b is RectangleF rectangleB => Intersects(rectangleA, rectangleB),

The call to Intersects here resolves back to the same Intersects(this IShapeF, IShapeF) method causing infinite recursion until a stack overflow occurs.

Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment