Stream: t-compiler

Topic: 0 is not null in practice!


nagisa (Jan 25 2019 at 17:57, on Zulip):

https://github.com/rust-lang/rust/issues/57897 outlines a practical instance of a previously very theoretical concern of pointer address of 0 not necessarily being a null pointer.

nagisa (Jan 25 2019 at 17:57, on Zulip):

This should be pretty fun :slight_smile:

nikomatsakis (Jan 25 2019 at 18:45, on Zulip):

be afraid, be very afraid

Jake Goulding (Jan 26 2019 at 14:31, on Zulip):

Oh, I was actually aware of this issue; I thought other people were as well. Now I feel bad.

Jake Goulding (Jan 26 2019 at 14:32, on Zulip):

https://stackoverflow.com/a/49020435/155423

// NULL is conventionally at address 0, so we "use up" the first 4
// bytes of address space to make our lives a bit simpler.
base += 4;
Last update: Nov 20 2019 at 01:10UTC