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: mcopy offset overflow #999

Merged
merged 1 commit into from
Sep 30, 2024
Merged

fix: mcopy offset overflow #999

merged 1 commit into from
Sep 30, 2024

Conversation

enitrat
Copy link
Contributor

@enitrat enitrat commented Sep 30, 2024

Fixes an issue where the mcopy offset could overflow. Instead, saturate the offset at max_usize, knowing that if size is non-zero, it would result in an OOG.


This change is Reviewable

@enitrat enitrat merged commit 1a80ed7 into main Sep 30, 2024
4 of 5 checks passed
@enitrat enitrat deleted the fix/mcopy-offset-saturating branch September 30, 2024 16:38
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.

1 participant