out of bound memory check

Amol Kumar Lad amolk@ishoni.com
Tue Aug 27 22:13:00 GMT 2002


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






More information about the Gcc mailing list