Closed Bug 16485 Opened 25 years ago Closed 25 years ago

Potential Y2k problem at nsFTPDirListingConv.cpp:778

Categories

(SeaMonkey :: General, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: anupp, Assigned: jud)

Details

Attachments

(1 file)

Please look at the following code at
./mozilla/netwerk/streamconv/converters/nsFTPDirListingConv.cpp:778

curTime.tm_year     = (((aCStr[6]-'0')*10) + aCStr[7]-'0');

The curTime is of type PRExplodedTime. The tm_year in PRExplodedTime represent
absolute year (four digit). It appears to me that RHS of the above statement
will result in two digit year only. Hence the curTime.tm_year will get assigned
the two digit year which i think does not match the defintion of tm_year in
PRExplodedTime.
Assignee: leger → valeski
QA Contact: anupp → shrir
Assigning to valeski
Status: NEW → ASSIGNED
Target Milestone: M12
I've got a fix. atatching...
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
fix checked in 11/10/99 4:30pm pac time.
Status: RESOLVED → VERIFIED
Marking Verified/Fixed.
moving to browser-general component.  the `Y2k' component is being retired...
Component: Y2k → Browser-General
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: