Skip to content

fix unsound use of pointer::add - #185

Merged
seanmonstar merged 1 commit into
seanmonstar:masterfrom
krasimirgg:fix-uns
Sep 30, 2024
Merged

seanmonstar merged 1 commit into
seanmonstar:masterfrom
krasimirgg:fix-uns

Conversation

@krasimirgg

@krasimirgg krasimirgg commented Sep 25, 2024 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Owner

Thanks! Notably, this was reported in #177.

Thoughts @AaronO?

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