diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-12 06:29:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-12 06:29:03 +0100 |
| commit | 60f4b7a56e5968c97a0a5a5571793615fb29cff6 (patch) | |
| tree | 8ba51c7d369730e7b22f01dd49bf23f2f7f4df4f /compiler/rustc_interface/src/errors.rs | |
| parent | b4cbc882eb1bdf9aee29fd8cafd7779a5a4da068 (diff) | |
| parent | 3af28f0b7094046a190acc7e823b170694f085b9 (diff) | |
| download | rust-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_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
