How to boundary check in gcc / mingw?
Posted
by Hernán Eche
on Stack Overflow
See other posts from Stack Overflow
or by Hernán Eche
Published on 2010-06-10T13:11:11Z
Indexed on
2010/06/10
13:12 UTC
Read the original article
Hit count: 491
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
© Stack Overflow or respective owner