Skip to content

Conversation

@Flamefire
Copy link
Member

@Flamefire Flamefire commented Sep 26, 2025

The maximum value for a random point was INT_MAX/2. We had at some point: point + size*2 which overflows when size is in the range of INT_MAX/2. See https://github.com/Return-To-The-Roots/s25client/actions/runs/18046457107/job/51366141584?pr=1800

Use an upper bound of /32 for the random point values.

The maximum value for a random point was INT_MAX/2.
We had at some point: `point + size*2` which overflows when size is in
the range of INT_MAX/2.

Use an upper bound of /32 for the random point values.
@Flamefire Flamefire requested a review from Flow86 September 26, 2025 21:05
@Flow86 Flow86 merged commit cbd82eb into master Sep 27, 2025
20 checks passed
@Flow86 Flow86 deleted the fix-ub-test branch September 27, 2025 12:07
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.

3 participants