can gcc provide information for stack array overran checking ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,
 the following program has a stack array overran and static arrary overran .
overran of this kind may be a very hard to find bug in a software .so can
gcc provide extra information for other debugging tools to check if an
array is overran ?
program.c:

int static[5];

int main(void)
{
  int stack[5];

  static[5] = 0;
  stack [5] = 0;
          
  return 0;
}

i have no idea about whom to ask ,gdb or gcc or both ??



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux