diff options
| author | bors <bors@rust-lang.org> | 2024-02-15 06:04:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-15 06:04:25 +0000 |
| commit | bd6b3361339522cc258d1f4165e3340e4cb1add4 (patch) | |
| tree | b2701e086a07c05cfedc85ab71f59962eec12c1b /compiler/rustc_const_eval/src/interpret/terminator.rs | |
| parent | ee9c7c940c07d8b67c9a6b2ec930db70dcd23a46 (diff) | |
| parent | 217e5e484df9ade9bbca4ffe923792872aca7bd9 (diff) | |
| download | rust-bd6b3361339522cc258d1f4165e3340e4cb1add4.tar.gz rust-bd6b3361339522cc258d1f4165e3340e4cb1add4.zip | |
Auto merge of #121125 - ehuss:fix-small-cstr, r=Mark-Simulacrum
Fix SmallCStr conversion from CStr The conversion from CStr to SmallCStr was not including the null byte. SmallCStr requires a trailing null. This caused `as_c_str` to either panic if std is built with debug assertions, or to have some corrupt memory behavior.
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/terminator.rs')
0 files changed, 0 insertions, 0 deletions
