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 size_t underflow in geodesic worldtube evolution #6277

Merged

Conversation

nikwit
Copy link
Contributor

@nikwit nikwit commented Sep 6, 2024

For a geodesic evolution, the MaxIterations variable of type size_t is set to 0. However, the iteration termination condition in the code computes MaxIterations - 1 which causes an underflow and an infinite loop. This PR fixes this and adds the neccessary test.

@nikwit nikwit added the bugfix label Sep 6, 2024
@nilsdeppe nilsdeppe merged commit 99d05f1 into sxs-collaboration:develop Sep 6, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants