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

Rank Calculation Out-of-Bounds Fix #268

Merged
merged 1 commit into from
Dec 24, 2023

Conversation

FinnHornhoover
Copy link
Contributor

@FinnHornhoover FinnHornhoover commented Dec 23, 2023

In PR #257 and the related tabledata PR OpenFusionProject/tabledata#19, rank scores were replaced, but the old scores always had a value of 0 at the last rank. This had the effect of a null terminator and rank calculation never went out of bounds. When this pattern was broken, 0 star races were able to crash the server.

There's now an explicit bounds check that prevents this.

@dongresource dongresource merged commit 44560a4 into OpenFusionProject:master Dec 24, 2023
3 checks passed
@FinnHornhoover FinnHornhoover deleted the racing-hotfix branch December 24, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants