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

don't call Memory::get without checking the pointer first #815

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

RalfJung
Copy link
Member

Also avoid Memory::get if we just need to know align/size.

I audited all uses of alloc_id; the rest should be fine (and we can kill a bunch of them once rust-lang/rust#62257 lands).

@RalfJung
Copy link
Member Author

RalfJung commented Jul 1, 2019

@bors r+

@bors
Copy link
Contributor

bors commented Jul 1, 2019

📌 Commit 4135441 has been approved by RalfJung

@bors
Copy link
Contributor

bors commented Jul 1, 2019

⌛ Testing commit 4135441 with merge 93f5892...

bors added a commit that referenced this pull request Jul 1, 2019
don't call Memory::get without checking the pointer first

Also avoid Memory::get if we just need to know align/size.

I audited all uses of `alloc_id`; the rest should be fine (and we can kill a bunch of them once rust-lang/rust#62257 lands).
@bors
Copy link
Contributor

bors commented Jul 1, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: RalfJung
Pushing 93f5892 to master...

@bors bors merged commit 4135441 into rust-lang:master Jul 1, 2019
@RalfJung RalfJung deleted the memory-audit branch July 6, 2019 08:24
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