What is the range of illegle memory addresses?

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

 



Hi,

NULL (0) is a commonly used value for an invalid memory address. I
also see -1 is used for an illegal memory address.

Besides those values, I'd suspect that other values that are close to
0 (both negatives and positives) won't appear in real programs.

Is there a limit on the safe range that can be assumed to not be used
by user level code as valid addresses?

-- 
Regards,
Peng



[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