Norton Allen
|
gmtime() bug (or deeper?)
|
Norton Allen
08/20/2008 4:56 PM
post12133
|
gmtime() bug (or deeper?)
I am debugging an app, and data is being corrupted during a call to gmtime(). I looked through the source and traced the
app via gdb, and the culprit appears to be the _Getrules() function in /lib/c/time/xgetrules.c. I have yet to prove
this, but at the very beginning of that function, I see the following:
#ifdef __QNX__
static const char *olddst;
static Dstrule *rules;
#else
static const char *olddst = 0;
static Dstrule *rules = NULL;
#endif
followed by code that references both olddst and rules before they are initialized. Does that make any sense?
(p.s. is this a good forum to post this sort of thing, or should I use one of the forums under the OS project?)
|
|
|