about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-16 15:08:35 +0200
committerGitHub <noreply@github.com>2020-06-16 15:08:35 +0200
commitc65f39dac4114052eee2a900a287d767d8b678c6 (patch)
tree09c64fc7b41ffb71c1f656783ef84a976acb677b /src/rustllvm/RustWrapper.cpp
parentc8a9c340de32cb70c8bad8af1a4474f805c5a969 (diff)
parent1f0895162ba5a783d4d73d5c263552eaca9343b3 (diff)
downloadrust-c65f39dac4114052eee2a900a287d767d8b678c6.tar.gz
rust-c65f39dac4114052eee2a900a287d767d8b678c6.zip
Rollup merge of #73237 - tmiasko:arena, r=nnethercote
Check for overflow in DroplessArena and align returned memory

* Check for overflow when calculating the slice start & end position.
* Align the pointer obtained from the allocator, ensuring that it
  satisfies user requested alignment (the allocator is only asked for
  layout compatible with u8 slice).
* Remove an incorrect assertion from DroplessArena::align.
* Avoid forming references to an uninitialized memory in DroplessArena.

Helps with #73007, #72624.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions