This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/22485] pointer +- integer is never NULL
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2005 10:35:22 -0000
- Subject: [Bug c/22485] pointer +- integer is never NULL
- References: <20050714131031.22485.mattias@virtutech.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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