Re: Overflow Bug

2012-07-13 Thread Greg Wooledge
On Fri, Jul 13, 2012 at 08:53:25AM +0300, Pierre Gaston wrote: > On Thu, Jul 12, 2012 at 8:09 PM, Ernesto Messina > wrote: > > Hello, I think I found an overflow bug. I got the follow C program: > > > > #include > > #include > > > > int main(int argc, char *argv[]) > > { > > char a[10]; > >

Re: Overflow Bug

2012-07-12 Thread Pierre Gaston
On Thu, Jul 12, 2012 at 8:09 PM, Ernesto Messina wrote: > Hello, I think I found an overflow bug. I got the follow C program: > > #include > #include > > int main(int argc, char *argv[]) > { > char a[10]; > int i; > > strcpy(a, argv[1]); > > return 0; > } > > Compiling with: gcc pr