3 ms·
> The language doesn't make any promise yet on every major platform for the last 40 years a null deref resulted in a segfault because the lower address space is
by Dylan16807 3y ago
> The language doesn't make any promise yet on every major platform for the last 40 years a null deref resulted in a segfault because the lower address space is marked invalid.
If you're using an offset that's not super reliable, and some major platforms of the past 40 years do give you memory at or near zero, and of course with a language like C the compiler is allowed to assume it won't be null and that can cause all sorts of weird program corruption even when a page fault would be safe-ish.