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

Fixes UB in caps.c #5878

Merged
merged 1 commit into from
Dec 25, 2024
Merged

Fixes UB in caps.c #5878

merged 1 commit into from
Dec 25, 2024

Conversation

AlexOn1ine
Copy link
Collaborator

Fixes #5682

There is technically a 2nd part to the issue but I'm not sure if we should be concerned about it.

@Bassoonian
Copy link
Collaborator

Wouldn't >= be more logical?

@AlexOn1ine
Copy link
Collaborator Author

Wouldn't >= be more logical?

Yeah, I thought about it but a minus one from an array size is more common and easily more obvious why it is done. With '>=` you still wonder if the minus one is needed or not when it isn't there.

@Bassoonian Bassoonian merged commit 816d302 into rh-hideout:master Dec 25, 2024
1 check passed
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.

UB in soft level caps & exp test failing after fix
2 participants