diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-24 00:31:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-24 00:31:42 +0100 |
| commit | 61fadf805fb1400d6376c32e779c113a9d4436f8 (patch) | |
| tree | aed91d4c693cbaced2c3ed85e563f3ce82f07f3b /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | ae6107070d4c734678f141f56b7aab6c16a41014 (diff) | |
| parent | a48d2e178385a031eb4875deb09d728344d2912f (diff) | |
| download | rust-61fadf805fb1400d6376c32e779c113a9d4436f8.tar.gz rust-61fadf805fb1400d6376c32e779c113a9d4436f8.zip | |
Rollup merge of #106084 - RalfJung:into-iter, r=thomcc
fix vec::IntoIter::drop on high-alignment ZST This fixes a soundness bug: IntoIter would call `drop_in_place` on an insufficiently aligned pointer. So if a ZST with alignment greater 1 had drop glue, that would be called with an unaligned reference. Since https://github.com/rust-lang/rust/pull/103957, Miri checks alignment even if the type does not have drop glue, which is how this bug was found. r? ``@thomcc``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
