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 potential crash when adjusting offset #31644

Merged
merged 4 commits into from
Jan 24, 2025

Conversation

peppy
Copy link
Member

@peppy peppy commented Jan 24, 2025

If offset is adjusted close to the cutoff point of being allowed, a realm callback might cause a crash when it really shouldn't.

Also guarded against one other potential failure scenario which probably can't happen (see commit message).

We could probably dump this in the hotfix release.

Closes #31642.

@peppy peppy added area:gameplay next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! labels Jan 24, 2025
peppy added 2 commits January 24, 2025 15:49
…djust is not allowed

This should theoretically not be possible, but while we are sharing this
control's implementation between gameplay and non-gameplay usages, let's
ensure nothing weird can occur.
Hopefully don't need to overthink this one.
@peppy peppy force-pushed the fix-beatmap-offset-crash branch from cd0b11a to 8f8a645 Compare January 24, 2025 06:49
@pull-request-size pull-request-size bot added size/S and removed size/M labels Jan 24, 2025
@bdach bdach self-requested a review January 24, 2025 07:37
@peppy peppy force-pushed the fix-beatmap-offset-crash branch from 560b26f to 721b2df Compare January 24, 2025 08:17
@bdach bdach merged commit 2f84aec into ppy:master Jan 24, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:gameplay next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash On Changing Offset
2 participants