search for: rundate

Displaying 1 result from an estimated 1 matches for "rundate".

Did you mean: sundate
2012 Nov 20
1
Buffer overflow in date package
...int size = strlen(cdatev); char *cdate[size]; for (i=0;i<size;i++) cdate[i] = &cdatev[i]; char_date(n, order, cdate, month, day, year); printf("%d-%d-%d\n",day[0],month[0],year[0]); return(0); } Depending on the compilation flags, I get different behavior: $ gcc rundate.c -o rundate.o $ ./rundate.o 92-1-1994 $ gcc rundate.c -O3 -o rundate.o $ ./rundate.o *** buffer overflow detected ***: ./rundate.o terminated ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f17fdfb9007] /lib/x86_64-linux-gnu/libc.so.6(+0x107f00)[0x7f17fdfb7f00...