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 unsound use of pointer::add #185

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

krasimirgg
Copy link
Contributor

@krasimirgg krasimirgg commented Sep 25, 2024

No functional changes intended.

From the docs of pointer::add:

If the computed offset is non-zero, then self must be derived from a pointer to some allocated object, and the entire memory range between self and the result must be in bounds of that allocated object. In particular, this range must not “wrap around” the edge of the address space.

@seanmonstar
Copy link
Owner

Thanks! Notably, this was reported in #177.

Thoughts @AaronO?

@seanmonstar seanmonstar merged commit cf69365 into seanmonstar:master Sep 30, 2024
41 checks 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.

2 participants