Ethereal-dev: Re: [Ethereal-dev] Crash in Win32 Ethereal-0.8.19

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 14 Aug 2001 01:55:53 -0700
On Tue, Aug 14, 2001 at 01:36:49AM -0700, Venkatesh Krishnamurthi wrote:
>   The only relevant detail from the system log is that the application crashed
> in abs_time_to_str().

Yes, that's the wimps at Microsoft making "localtime()" and "gmtime()"
return a null pointer for times before the Epoch (midnight, Jan 1, 1970
GMT) rather than just filling in the "struct tm" sanely.  (The rwho
packet claims that it was received in the year in which the original
Ford flathead V-8 came out; UNIX wasn't around back in 1932....)

The current version of Ethereal in CVS has fixes to the calls to
"localtime()" and "gmtime()" (other than the ones in the SMB dissector,
which were fixed a while ago) to report a "bad time" if "localtime()" or
"gmtime()" return a null pointer.