]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #815 - RalfJung:memory-audit, r=RalfJung
authorbors <bors@rust-lang.org>
Mon, 1 Jul 2019 20:59:17 +0000 (20:59 +0000)
committerbors <bors@rust-lang.org>
Mon, 1 Jul 2019 20:59:17 +0000 (20:59 +0000)
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 https://github.com/rust-lang/rust/pull/62257 lands).

1  2 
src/shims/foreign_items.rs

Simple merge