about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-12 06:29:03 +0100
committerGitHub <noreply@github.com>2024-03-12 06:29:03 +0100
commit60f4b7a56e5968c97a0a5a5571793615fb29cff6 (patch)
tree8ba51c7d369730e7b22f01dd49bf23f2f7f4df4f /compiler/rustc_mir_transform/src/coverage/mod.rs
parentb4cbc882eb1bdf9aee29fd8cafd7779a5a4da068 (diff)
parent3af28f0b7094046a190acc7e823b170694f085b9 (diff)
downloadrust-60f4b7a56e5968c97a0a5a5571793615fb29cff6.tar.gz
rust-60f4b7a56e5968c97a0a5a5571793615fb29cff6.zip
Rollup merge of #122000 - erer1243:issue-121868, r=nikic
Fix 32-bit overflows in LLVM composite constants

Inspired by #121868. Fixes unsoundness created when constructing constant arrays, strings, and structs with 2^32 or more elements on x86_64. This introduces copies of a few LLVM functions that have their signatures updated to use size_t in place of unsigned int. Alternatively we could just add overflow checks and just disallow huge composite constants. That introduces less code, but maybe a huge static block of memory is useful in embedded/no-os situations?
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions