This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

out of bound memory check


Hi,
 Is is possible to catch out of bound memory access in gcc ? 
For example

int a[100];
int *p = a;

*(p + 200) = 5;  <-- I need to catch this

Is there any compiler support ??
I also don't know how Rational purify and other mem-tools catch
overbound access..

Please cc me as I am not subscribed to list

thanks
Amol





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]