Re:Memory Safety in a Modern System Programming Language Pt. 1
by AlotOfReading on Wednesday June 22, 2022 @10:05PM
(#31844370)
Well for one the code might be running in kernel space, so a null pointer access could very well be fatal. There are also use cases that D supports (e.g. certain bare metal arm targets) where the all-bits-zero pointer is validly addressable and contains Important Stuff.
Those protections are there as last ditch safety measures. You shouldn't rely on them .
Those protections are there as last ditch safety measures. You shouldn't rely on them .