diff options
| author | Bastian Kersting <bkersting@google.com> | 2024-12-17 13:00:22 +0000 |
|---|---|---|
| committer | Bastian Kersting <bkersting@google.com> | 2025-01-31 11:13:34 +0000 |
| commit | 27454db7d156cf8b99d6d59145ae2a1b92368a49 (patch) | |
| tree | 9840833a808b4e78f78f241a3af7d8b315ac8f16 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | 7eefa7671f59dba13a15fd6255684aa19ee05f7d (diff) | |
| download | rust-27454db7d156cf8b99d6d59145ae2a1b92368a49.tar.gz rust-27454db7d156cf8b99d6d59145ae2a1b92368a49.zip | |
Insert null checks for pointer dereferences when debug assertions are enabled
Similar to how the alignment is already checked, this adds a check for null pointer dereferences in debug mode. It is implemented similarly to the alignment check as a MirPass. This is related to a 2025H1 project goal for better UB checks in debug mode: https://github.com/rust-lang/rust-project-goals/pull/177.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
