7 ms·
One safety critical project I worked on used null pointer accesses to do control flow. So, that one.
by AlotOfReading 2y ago
One safety critical project I worked on used null pointer accesses to do control flow. So, that one.
- scintill76 2y agoI 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.)
- AlotOfReading 2y agoYou could, but a better strategy for that particular project would have been to rewrite it to not need that.