[Bug c/22485] pointer +- integer is never NULL

pluto at agmk dot net gcc-bugzilla@gcc.gnu.org
Fri Jul 15 11:42:00 GMT 2005


------- Additional Comments From pluto at agmk dot net  2005-07-15 10:35 -------
minor comment:
e.g. on ARM7 i can read data from address 0x00000000 (-> exception vector table).

int* p = (int*)0x00000004;
int d = -1;
int *m = *p + d;    // it's valid for ARM arch.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22485



More information about the Gcc-bugs mailing list