Dear colleague(s),
We found the same bug this morning when working on the tutorial and we finally found the bug. The problem comes from the SPIDER header for the date and time calculation.
To fix this bug, we modify the file rwSPIDER.h
line 99: char ctim[8]; // 214-215 creation time
by allocating 9 characters to ctim buffer
char ctim[9]; // 214-215 creation time
because the 'buffer overflow' error comes from the line 355
sprintf(header->ctim, "%02d:%02d:%02d", t->tm_hour, t->tm_min, t->tm_sec);
Indeed, the header->ctim is a string of 8 characters and we need 8 char + '\0' character corresponding to a total of 9 char.
We don't know if this fix has other implications in the file header. However, the autopicking seems to work properly.
Hope that helps.
Jean-Christophe.
|