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

fix/stack overflow #5370

Merged
merged 3 commits into from
Sep 10, 2024
Merged

fix/stack overflow #5370

merged 3 commits into from
Sep 10, 2024

Conversation

baywet
Copy link
Member

@baywet baywet commented Sep 9, 2024

fixes #5369
regression introduced in #5279
Before resulting to reverting the Equals implementation I explored making the visited schema hashset a property/constructor parameter, which results in non-resuability of the comparer or having to create new instances for each comparison (lots of new allocs).
I've also explored re-implementing SequenceEquals, this results in lots of additional duplicated code from the standard library.
Lastly, I've replaced added ordering before a bunch of sequence equal since the order should NOT matter

@baywet baywet requested a review from a team as a code owner September 9, 2024 19:34
@baywet baywet self-assigned this Sep 9, 2024
Copy link

sonarcloud bot commented Sep 10, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
51.9% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@baywet baywet merged commit 7a39ecf into main Sep 10, 2024
208 of 209 checks passed
@baywet baywet deleted the fix/stack-overflow branch September 10, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Version 1.18.0 causes Stack overflow
2 participants