diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-06-11 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-06-15 09:56:34 +0200 |
| commit | c0c3327ade8b0caa3043425ee45842c86fbd4f76 (patch) | |
| tree | ce50521ed437aa4a0707feb5c21a29845265b745 /src/rustllvm/RustWrapper.cpp | |
| parent | 4fb54ed484e2239a3e9eff3be17df00d2a162be3 (diff) | |
| download | rust-c0c3327ade8b0caa3043425ee45842c86fbd4f76.tar.gz rust-c0c3327ade8b0caa3043425ee45842c86fbd4f76.zip | |
Check for overflow in DroplessArena and return aligned pointer
* 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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
