How to boundary check in gcc / mingw?
- by Hernán Eche
Having tried this
int main(void) {
int a[10];
a[20]=5;
}
gcc -Wall -O2 main.c
It gives me no warning...
It's gcc within windows (mingw) and I am not able to detect this kind of boundary limit bug
how to tell compiler to check it? can mingw do it?
thanks