Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
RalfJung:memory-audit
Jul 1, 2019
Merged

don't call Memory::get without checking the pointer first#815
bors merged 1 commit into
rust-lang:masterfrom
RalfJung:memory-audit

Conversation

@RalfJung

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

RalfJung commented Jul 1, 2019

Copy link
Copy Markdown
Member Author

@bors r+

@bors

bors commented Jul 1, 2019

Copy link
Copy Markdown
Contributor

📌 Commit 4135441 has been approved by RalfJung

@bors

bors commented Jul 1, 2019

Copy link
Copy Markdown
Contributor

⌛ 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

bors commented Jul 1, 2019

Copy link
Copy Markdown
Contributor

☀️ 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