User Activity

  • Posted a comment on discussion Help on MinGW-w64 - for 32 and 64 bit Windows

    It seems that strftime sometimes writes beyond the buffer specified instead of returning zero. It doesn't happen with all buffer sizes (eg. 21 bytes triggers the bug, but 20 bytes doesn't), but I can reliably reproduce it with the following sample code. #define __USE_MINGW_ANSI_STDIO 1 #include <stdio.h> #include <string.h> #include <time.h> int main() { time_t t; struct tm tm; char padding1[60]; char buf[21]; char padding2[60]; memset(padding1, 'x', sizeof(padding1)); memset(padding2, 'x', sizeof(padding2));...

View All

Personal Data

Username:
chenxiaolong
Joined:
2010-01-04 16:37:30
Location:
United States / EDT
Gender:
Male

Projects

Skills

  • No skills entered.

Personal Tools