Displaying 1 result from an estimated 1 matches for "cdatev".
Did you mean:
datev
2012 Nov 20
1
Buffer overflow in date package
...86_64-linux-gnu/libc.so.6(+0x107f00)[0x7f46659c8f00]
/lib/x86_64-linux-gnu/libc.so.6(+0x107369)[0x7f46659c8369]
I have tried to isolate the problem by calling the C code from the date
package without R.
#include "char_date.c"
int main()
{ int nv = 1;
int order[] = {2,3,1};
char cdatev[] = "1921994";
int month[] = {0};
int day[] = {0};
int year[] = {0};
int *n = &nv;
int i;
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\...