|
2014-03-31 16:09 AEST by Arthur Barrett - stack trace:
wmain()
main()
preload()
run_preload()
server()
serve_history()
do_cvs_command()
server_main()
history()
read_hrecs()
select_hrec()
RCS_datecmp()
date_from_time_t()
It fails with an access violation on this:
(void) sprintf (date, DATEFORM,
ftm->tm_year + (ftm->tm_year < 100 ? 0 : 1900),
ftm->tm_mon + 1, ftm->tm_mday, ftm->tm_hour,
ftm->tm_min, ftm->tm_sec);
Which indicates that either the call to localtime() failed, or that the junk in ftm is way bigger than the 'date'
string:
ftm = localtime (&unixtime);
This is intended behaviour (that sprint should crash due to unexpected data), but the question is why the
unexpected data? Is it some bug in 'history' date processing, or is it bad data in the RCS file? |