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

Replace assertions in DecodeChunkRLEWithSize() #22061

Merged
merged 1 commit into from
May 19, 2024

Conversation

Gymnasiast
Copy link
Member

@Gymnasiast Gymnasiast commented May 18, 2024

If the game tries to decode something as RLE that isn’t RLE, or is damaged, assertions might get hit, crashing the game.

Examples are #21393.

Replace these assertions with exceptions, so that the callers can take appropriate action (e.g. show an error message saying the file is corrupted).

@Gymnasiast Gymnasiast added this to the v0.4.12 milestone May 19, 2024
@Gymnasiast Gymnasiast merged commit eaba5f3 into OpenRCT2:develop May 19, 2024
22 checks passed
@Gymnasiast Gymnasiast deleted the fix/crash-sawyercoding branch May 19, 2024 14:15
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.

None yet

2 participants