Re: What is the range of illegle memory addresses?

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

 



On 5/18/21 4:35 PM, Peng Yu wrote:
> So, to write a portable C program, no values other than NULL should be
> used as an invalid memory address?

I guess it depends on your definition of invalid.  NULL may be a special
address used as a sentinel, but that doesn't mean every system will give
you a SEGV if you happen to access NULL.  Some will happily let you do it.

Peter



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux