Re:Making Unsafe Rust a Little Safer
by AlotOfReading on Tuesday December 17, 2024 @07:33PM
(#42446986)
One safety critical project I worked on used null pointer accesses to do control flow. So, that one.
[ Parent
| on HN ]
Re:Making Unsafe Rust a Little Safer
by scintill76 on Wednesday December 18, 2024 @09:53AM
(#42450887)
I don’t know Rust, but I would think/hope you could wrap those control flow calls in some way, so those particular null pointer accesses do what you want, but other accidental ones are caught and safely handled (e.g. resetting the system to a safe state.)
Re:Making Unsafe Rust a Little Safer
by AlotOfReading on Wednesday December 18, 2024 @11:12AM
(#42451738)
You could, but a better strategy for that particular project would have been to rewrite it to not need that.