[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NULL dereference ? why not ?



Ramagudi Naziir wrote:
> by design, zero cannot be a legit virtual address, so it is used
> as a "magic" value that marks pointers as non-legit.

Yes, by design in certain runtime libraries, yes, e.g. with glibc on
GNU/Linux.

~chill


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/